Skip to content

Commit

Permalink
[AUTO-GENERATED] Migrate ui tests from // to //@ directives
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Feb 16, 2024
1 parent e53d6dd commit ec2cc76
Show file tree
Hide file tree
Showing 9,925 changed files with 16,401 additions and 16,401 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 5 additions & 5 deletions tests/ui/abi/abi-sysv64-arg-passing.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// run-pass
//@ run-pass
// Checks if the "sysv64" calling convention behaves the same as the
// "C" calling convention on platforms where both should be the same

Expand All @@ -24,10 +24,10 @@
// issue-62350-sysv-neg-reg-counts
// struct-return

// ignore-android
// ignore-arm
// ignore-aarch64
// ignore-windows
//@ ignore-android
//@ ignore-arm
//@ ignore-aarch64
//@ ignore-windows

// note: windows is ignored as rust_test_helpers does not have the sysv64 abi on windows

Expand Down
10 changes: 5 additions & 5 deletions tests/ui/abi/abi-sysv64-register-usage.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// run-pass
//@ run-pass
// Checks if the correct registers are being used to pass arguments
// when the sysv64 ABI is specified.

// ignore-android
// ignore-arm
// ignore-aarch64
// needs-asm-support
//@ ignore-android
//@ ignore-arm
//@ ignore-aarch64
//@ needs-asm-support

#[cfg(target_arch = "x86_64")]
pub extern "sysv64" fn all_the_registers(
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/abi/anon-extern-mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// run-pass
// pretty-expanded FIXME #23616
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with

#![feature(rustc_private)]

Expand Down
14 changes: 7 additions & 7 deletions tests/ui/abi/arm-unadjusted-intrinsic.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// build-pass
// revisions: arm
//[arm] compile-flags: --target arm-unknown-linux-gnueabi
//[arm] needs-llvm-components: arm
// revisions: aarch64
//[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//[aarch64] needs-llvm-components: aarch64
//@ build-pass
//@ revisions: arm
//@[arm] compile-flags: --target arm-unknown-linux-gnueabi
//@[arm] needs-llvm-components: arm
//@ revisions: aarch64
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//@[aarch64] needs-llvm-components: aarch64
#![feature(
no_core, lang_items, link_llvm_intrinsics,
abi_unadjusted, repr_simd, arm_target_feature,
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/abi/c-stack-as-value.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// run-pass
// pretty-expanded FIXME #23616
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with

#![feature(rustc_private)]

Expand Down
6 changes: 3 additions & 3 deletions tests/ui/abi/c-stack-returning-int64.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// run-pass
// ignore-wasm32-bare no libc to test with
// ignore-sgx no libc
//@ run-pass
//@ ignore-wasm32-bare no libc to test with
//@ ignore-sgx no libc

#![feature(rustc_private)]

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/cabi-int-widening.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with

#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {
Expand Down
108 changes: 54 additions & 54 deletions tests/ui/abi/compatibility.rs
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
// check-pass
// revisions: host
// revisions: i686
//[i686] compile-flags: --target i686-unknown-linux-gnu
//[i686] needs-llvm-components: x86
// revisions: x86-64
//[x86-64] compile-flags: --target x86_64-unknown-linux-gnu
//[x86-64] needs-llvm-components: x86
// revisions: x86-64-win
//[x86-64-win] compile-flags: --target x86_64-pc-windows-msvc
//[x86-64-win] needs-llvm-components: x86
// revisions: arm
//[arm] compile-flags: --target arm-unknown-linux-gnueabi
//[arm] needs-llvm-components: arm
// revisions: aarch64
//[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//[aarch64] needs-llvm-components: aarch64
// revisions: s390x
//[s390x] compile-flags: --target s390x-unknown-linux-gnu
//[s390x] needs-llvm-components: systemz
// revisions: mips
//[mips] compile-flags: --target mips-unknown-linux-gnu
//[mips] needs-llvm-components: mips
// revisions: mips64
//[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
//[mips64] needs-llvm-components: mips
// revisions: sparc
//[sparc] compile-flags: --target sparc-unknown-linux-gnu
//[sparc] needs-llvm-components: sparc
// revisions: sparc64
//[sparc64] compile-flags: --target sparc64-unknown-linux-gnu
//[sparc64] needs-llvm-components: sparc
// revisions: powerpc64
//[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
//[powerpc64] needs-llvm-components: powerpc
// revisions: riscv
//[riscv] compile-flags: --target riscv64gc-unknown-linux-gnu
//[riscv] needs-llvm-components: riscv
// revisions: loongarch64
//[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
//[loongarch64] needs-llvm-components: loongarch
//[loongarch64] min-llvm-version: 17
// revisions: wasm
//[wasm] compile-flags: --target wasm32-unknown-unknown
//[wasm] needs-llvm-components: webassembly
// revisions: wasi
//[wasi] compile-flags: --target wasm32-wasi
//[wasi] needs-llvm-components: webassembly
// revisions: bpf
//[bpf] compile-flags: --target bpfeb-unknown-none
//[bpf] needs-llvm-components: bpf
// revisions: m68k
//[m68k] compile-flags: --target m68k-unknown-linux-gnu
//[m68k] needs-llvm-components: m68k
//@ check-pass
//@ revisions: host
//@ revisions: i686
//@[i686] compile-flags: --target i686-unknown-linux-gnu
//@[i686] needs-llvm-components: x86
//@ revisions: x86-64
//@[x86-64] compile-flags: --target x86_64-unknown-linux-gnu
//@[x86-64] needs-llvm-components: x86
//@ revisions: x86-64-win
//@[x86-64-win] compile-flags: --target x86_64-pc-windows-msvc
//@[x86-64-win] needs-llvm-components: x86
//@ revisions: arm
//@[arm] compile-flags: --target arm-unknown-linux-gnueabi
//@[arm] needs-llvm-components: arm
//@ revisions: aarch64
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//@[aarch64] needs-llvm-components: aarch64
//@ revisions: s390x
//@[s390x] compile-flags: --target s390x-unknown-linux-gnu
//@[s390x] needs-llvm-components: systemz
//@ revisions: mips
//@[mips] compile-flags: --target mips-unknown-linux-gnu
//@[mips] needs-llvm-components: mips
//@ revisions: mips64
//@[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
//@[mips64] needs-llvm-components: mips
//@ revisions: sparc
//@[sparc] compile-flags: --target sparc-unknown-linux-gnu
//@[sparc] needs-llvm-components: sparc
//@ revisions: sparc64
//@[sparc64] compile-flags: --target sparc64-unknown-linux-gnu
//@[sparc64] needs-llvm-components: sparc
//@ revisions: powerpc64
//@[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
//@[powerpc64] needs-llvm-components: powerpc
//@ revisions: riscv
//@[riscv] compile-flags: --target riscv64gc-unknown-linux-gnu
//@[riscv] needs-llvm-components: riscv
//@ revisions: loongarch64
//@[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
//@[loongarch64] needs-llvm-components: loongarch
//@[loongarch64] min-llvm-version: 17
//@ revisions: wasm
//@[wasm] compile-flags: --target wasm32-unknown-unknown
//@[wasm] needs-llvm-components: webassembly
//@ revisions: wasi
//@[wasi] compile-flags: --target wasm32-wasi
//@[wasi] needs-llvm-components: webassembly
//@ revisions: bpf
//@[bpf] compile-flags: --target bpfeb-unknown-none
//@[bpf] needs-llvm-components: bpf
//@ revisions: m68k
//@[m68k] compile-flags: --target m68k-unknown-linux-gnu
//@[m68k] needs-llvm-components: m68k
// FIXME: disabled on nvptx64 since the target ABI fails the sanity check
// see https://github.com/rust-lang/rust/issues/117480
/* revisions: nvptx64
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/abi/cross-crate/anon-extern-mod-cross-crate-2.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// run-pass
// aux-build:anon-extern-mod-cross-crate-1.rs
// pretty-expanded FIXME #23616
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with

extern crate anonexternmod;

Expand Down
10 changes: 5 additions & 5 deletions tests/ui/abi/cross-crate/duplicated-external-mods.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// run-pass
// aux-build:anon-extern-mod-cross-crate-1.rs
// aux-build:anon-extern-mod-cross-crate-1.rs
// pretty-expanded FIXME #23616
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with

extern crate anonexternmod;

Expand Down
12 changes: 6 additions & 6 deletions tests/ui/abi/debug.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// normalize-stderr-test "(abi|pref|unadjusted_abi_align): Align\([1-8] bytes\)" -> "$1: $$SOME_ALIGN"
// normalize-stderr-test "(size): Size\([48] bytes\)" -> "$1: $$SOME_SIZE"
// normalize-stderr-test "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
// normalize-stderr-test "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
//@ normalize-stderr-test "(abi|pref|unadjusted_abi_align): Align\([1-8] bytes\)" -> "$1: $$SOME_ALIGN"
//@ normalize-stderr-test "(size): Size\([48] bytes\)" -> "$1: $$SOME_SIZE"
//@ normalize-stderr-test "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
//@ normalize-stderr-test "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
// This pattern is prepared for when we account for alignment in the niche.
// normalize-stderr-test "(valid_range): [1-9]\.\.=(429496729[0-9]|1844674407370955161[0-9])" -> "$1: $$NON_NULL"
//@ normalize-stderr-test "(valid_range): [1-9]\.\.=(429496729[0-9]|1844674407370955161[0-9])" -> "$1: $$NON_NULL"
// Some attributes are only computed for release builds:
// compile-flags: -O
//@ compile-flags: -O
#![feature(rustc_attrs)]
#![crate_type = "lib"]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/abi/explicit_repr_rust.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// check-pass
//@ check-pass

#[repr(Rust)]
struct A;
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/abi/extern/extern-call-deep.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// run-pass
// ignore-wasm32-bare no libc to test ffi with
// ignore-emscripten blows the JS stack
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
//@ ignore-emscripten blows the JS stack

#![feature(rustc_private)]

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-call-deep2.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// run-pass
//@ run-pass
#![allow(unused_must_use)]
// ignore-emscripten no threads support
//@ ignore-emscripten no threads support
#![feature(rustc_private)]

extern crate libc;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/abi/extern/extern-call-direct.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// run-pass
//@ run-pass
// Test direct calls to extern fns.


Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-call-indirect.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with

#![feature(rustc_private)]

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-call-scrub.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// run-pass
//@ run-pass
#![allow(unused_must_use)]
// This time we're testing repeatedly going up and down both stacks to
// make sure the stack pointers are maintained properly in both
// directions

// ignore-emscripten no threads support
//@ ignore-emscripten no threads support
#![feature(rustc_private)]

extern crate libc;
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/abi/extern/extern-crosscrate.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// run-pass
// aux-build:extern-crosscrate-source.rs
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ aux-build:extern-crosscrate-source.rs
//@ ignore-wasm32-bare no libc to test ffi with

#![feature(rustc_private)]

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-pass-TwoU16s.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]

// ignore-wasm32-bare no libc for ffi testing
//@ ignore-wasm32-bare no libc for ffi testing

// Test a foreign function that accepts and returns a struct
// by value.
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-pass-TwoU32s.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]

// ignore-wasm32-bare no libc for ffi testing
//@ ignore-wasm32-bare no libc for ffi testing

// Test a foreign function that accepts and returns a struct
// by value.
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-pass-TwoU64s.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]

// ignore-wasm32-bare no libc for ffi testing
//@ ignore-wasm32-bare no libc for ffi testing

// Test a foreign function that accepts and returns a struct
// by value.
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-pass-TwoU8s.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]

// ignore-wasm32-bare no libc for ffi testing
//@ ignore-wasm32-bare no libc for ffi testing

// Test a foreign function that accepts and returns a struct
// by value.
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-pass-char.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc for ffi testing
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing

// Test a function that takes/returns a u8.

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-pass-double.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc for ffi testing
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing

#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/abi/extern/extern-pass-empty.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)] // FIXME: this test is inherently not FFI-safe.

// Test a foreign function that accepts empty struct.

// pretty-expanded FIXME #23616
// ignore-msvc
// ignore-emscripten emcc asserts on an empty struct as an argument
//@ pretty-expanded FIXME #23616
//@ ignore-msvc
//@ ignore-emscripten emcc asserts on an empty struct as an argument

#[repr(C)]
struct TwoU8s {
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-pass-u32.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc for ffi testing
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing

// Test a function that takes/returns a u32.

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/extern/extern-pass-u64.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc for ffi testing
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing

// Test a call to a function that takes/returns a u64.

Expand Down
Loading

0 comments on commit ec2cc76

Please sign in to comment.