Skip to content

Commit e6fb22f

Browse files
committed
Migrate from // to //@ for UI tests via migration tool
1 parent 6c3a50c commit e6fb22f

File tree

9,906 files changed

+16356
-16356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,906 files changed

+16356
-16356
lines changed

tests/ui/abi/abi-sysv64-arg-passing.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@ run-pass
22
// Checks if the "sysv64" calling convention behaves the same as the
33
// "C" calling convention on platforms where both should be the same
44

@@ -24,10 +24,10 @@
2424
// issue-62350-sysv-neg-reg-counts
2525
// struct-return
2626

27-
// ignore-android
28-
// ignore-arm
29-
// ignore-aarch64
30-
// ignore-windows
27+
//@ ignore-android
28+
//@ ignore-arm
29+
//@ ignore-aarch64
30+
//@ ignore-windows
3131

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

tests/ui/abi/abi-sysv64-register-usage.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// run-pass
1+
//@ run-pass
22
// Checks if the correct registers are being used to pass arguments
33
// when the sysv64 ABI is specified.
44

5-
// ignore-android
6-
// ignore-arm
7-
// ignore-aarch64
8-
// needs-asm-support
5+
//@ ignore-android
6+
//@ ignore-arm
7+
//@ ignore-aarch64
8+
//@ needs-asm-support
99

1010
#[cfg(target_arch = "x86_64")]
1111
pub extern "sysv64" fn all_the_registers(

tests/ui/abi/anon-extern-mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
2-
// pretty-expanded FIXME #23616
3-
// ignore-wasm32-bare no libc to test ffi with
1+
//@ run-pass
2+
//@ pretty-expanded FIXME #23616
3+
//@ ignore-wasm32-bare no libc to test ffi with
44

55
#![feature(rustc_private)]
66

tests/ui/abi/arm-unadjusted-intrinsic.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// build-pass
2-
// revisions: arm
3-
//[arm] compile-flags: --target arm-unknown-linux-gnueabi
4-
//[arm] needs-llvm-components: arm
5-
// revisions: aarch64
6-
//[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
7-
//[aarch64] needs-llvm-components: aarch64
1+
//@ build-pass
2+
//@ revisions: arm
3+
//@[arm] compile-flags: --target arm-unknown-linux-gnueabi
4+
//@[arm] needs-llvm-components: arm
5+
//@ revisions: aarch64
6+
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
7+
//@[aarch64] needs-llvm-components: aarch64
88
#![feature(
99
no_core, lang_items, link_llvm_intrinsics,
1010
abi_unadjusted, repr_simd, arm_target_feature,

tests/ui/abi/c-stack-as-value.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
2-
// pretty-expanded FIXME #23616
3-
// ignore-wasm32-bare no libc to test ffi with
1+
//@ run-pass
2+
//@ pretty-expanded FIXME #23616
3+
//@ ignore-wasm32-bare no libc to test ffi with
44

55
#![feature(rustc_private)]
66

tests/ui/abi/c-stack-returning-int64.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
2-
// ignore-wasm32-bare no libc to test with
3-
// ignore-sgx no libc
1+
//@ run-pass
2+
//@ ignore-wasm32-bare no libc to test with
3+
//@ ignore-sgx no libc
44

55
#![feature(rustc_private)]
66

tests/ui/abi/cabi-int-widening.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// ignore-wasm32-bare no libc to test ffi with
1+
//@ run-pass
2+
//@ ignore-wasm32-bare no libc to test ffi with
33

44
#[link(name = "rust_test_helpers", kind = "static")]
55
extern "C" {

tests/ui/abi/compatibility.rs

+54-54
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
1-
// check-pass
2-
// revisions: host
3-
// revisions: i686
4-
//[i686] compile-flags: --target i686-unknown-linux-gnu
5-
//[i686] needs-llvm-components: x86
6-
// revisions: x86-64
7-
//[x86-64] compile-flags: --target x86_64-unknown-linux-gnu
8-
//[x86-64] needs-llvm-components: x86
9-
// revisions: x86-64-win
10-
//[x86-64-win] compile-flags: --target x86_64-pc-windows-msvc
11-
//[x86-64-win] needs-llvm-components: x86
12-
// revisions: arm
13-
//[arm] compile-flags: --target arm-unknown-linux-gnueabi
14-
//[arm] needs-llvm-components: arm
15-
// revisions: aarch64
16-
//[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
17-
//[aarch64] needs-llvm-components: aarch64
18-
// revisions: s390x
19-
//[s390x] compile-flags: --target s390x-unknown-linux-gnu
20-
//[s390x] needs-llvm-components: systemz
21-
// revisions: mips
22-
//[mips] compile-flags: --target mips-unknown-linux-gnu
23-
//[mips] needs-llvm-components: mips
24-
// revisions: mips64
25-
//[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
26-
//[mips64] needs-llvm-components: mips
27-
// revisions: sparc
28-
//[sparc] compile-flags: --target sparc-unknown-linux-gnu
29-
//[sparc] needs-llvm-components: sparc
30-
// revisions: sparc64
31-
//[sparc64] compile-flags: --target sparc64-unknown-linux-gnu
32-
//[sparc64] needs-llvm-components: sparc
33-
// revisions: powerpc64
34-
//[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
35-
//[powerpc64] needs-llvm-components: powerpc
36-
// revisions: riscv
37-
//[riscv] compile-flags: --target riscv64gc-unknown-linux-gnu
38-
//[riscv] needs-llvm-components: riscv
39-
// revisions: loongarch64
40-
//[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
41-
//[loongarch64] needs-llvm-components: loongarch
42-
//[loongarch64] min-llvm-version: 17
43-
// revisions: wasm
44-
//[wasm] compile-flags: --target wasm32-unknown-unknown
45-
//[wasm] needs-llvm-components: webassembly
46-
// revisions: wasi
47-
//[wasi] compile-flags: --target wasm32-wasi
48-
//[wasi] needs-llvm-components: webassembly
49-
// revisions: bpf
50-
//[bpf] compile-flags: --target bpfeb-unknown-none
51-
//[bpf] needs-llvm-components: bpf
52-
// revisions: m68k
53-
//[m68k] compile-flags: --target m68k-unknown-linux-gnu
54-
//[m68k] needs-llvm-components: m68k
1+
//@ check-pass
2+
//@ revisions: host
3+
//@ revisions: i686
4+
//@[i686] compile-flags: --target i686-unknown-linux-gnu
5+
//@[i686] needs-llvm-components: x86
6+
//@ revisions: x86-64
7+
//@[x86-64] compile-flags: --target x86_64-unknown-linux-gnu
8+
//@[x86-64] needs-llvm-components: x86
9+
//@ revisions: x86-64-win
10+
//@[x86-64-win] compile-flags: --target x86_64-pc-windows-msvc
11+
//@[x86-64-win] needs-llvm-components: x86
12+
//@ revisions: arm
13+
//@[arm] compile-flags: --target arm-unknown-linux-gnueabi
14+
//@[arm] needs-llvm-components: arm
15+
//@ revisions: aarch64
16+
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
17+
//@[aarch64] needs-llvm-components: aarch64
18+
//@ revisions: s390x
19+
//@[s390x] compile-flags: --target s390x-unknown-linux-gnu
20+
//@[s390x] needs-llvm-components: systemz
21+
//@ revisions: mips
22+
//@[mips] compile-flags: --target mips-unknown-linux-gnu
23+
//@[mips] needs-llvm-components: mips
24+
//@ revisions: mips64
25+
//@[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
26+
//@[mips64] needs-llvm-components: mips
27+
//@ revisions: sparc
28+
//@[sparc] compile-flags: --target sparc-unknown-linux-gnu
29+
//@[sparc] needs-llvm-components: sparc
30+
//@ revisions: sparc64
31+
//@[sparc64] compile-flags: --target sparc64-unknown-linux-gnu
32+
//@[sparc64] needs-llvm-components: sparc
33+
//@ revisions: powerpc64
34+
//@[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
35+
//@[powerpc64] needs-llvm-components: powerpc
36+
//@ revisions: riscv
37+
//@[riscv] compile-flags: --target riscv64gc-unknown-linux-gnu
38+
//@[riscv] needs-llvm-components: riscv
39+
//@ revisions: loongarch64
40+
//@[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
41+
//@[loongarch64] needs-llvm-components: loongarch
42+
//@[loongarch64] min-llvm-version: 17
43+
//@ revisions: wasm
44+
//@[wasm] compile-flags: --target wasm32-unknown-unknown
45+
//@[wasm] needs-llvm-components: webassembly
46+
//@ revisions: wasi
47+
//@[wasi] compile-flags: --target wasm32-wasi
48+
//@[wasi] needs-llvm-components: webassembly
49+
//@ revisions: bpf
50+
//@[bpf] compile-flags: --target bpfeb-unknown-none
51+
//@[bpf] needs-llvm-components: bpf
52+
//@ revisions: m68k
53+
//@[m68k] compile-flags: --target m68k-unknown-linux-gnu
54+
//@[m68k] needs-llvm-components: m68k
5555
// FIXME: disabled on nvptx64 since the target ABI fails the sanity check
5656
// see https://github.com/rust-lang/rust/issues/117480
5757
/* revisions: nvptx64

tests/ui/abi/cross-crate/anon-extern-mod-cross-crate-2.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// run-pass
2-
// aux-build:anon-extern-mod-cross-crate-1.rs
3-
// pretty-expanded FIXME #23616
4-
// ignore-wasm32-bare no libc to test ffi with
1+
//@ run-pass
2+
//@ aux-build:anon-extern-mod-cross-crate-1.rs
3+
//@ pretty-expanded FIXME #23616
4+
//@ ignore-wasm32-bare no libc to test ffi with
55

66
extern crate anonexternmod;
77

tests/ui/abi/cross-crate/duplicated-external-mods.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// run-pass
2-
// aux-build:anon-extern-mod-cross-crate-1.rs
3-
// aux-build:anon-extern-mod-cross-crate-1.rs
4-
// pretty-expanded FIXME #23616
5-
// ignore-wasm32-bare no libc to test ffi with
1+
//@ run-pass
2+
//@ aux-build:anon-extern-mod-cross-crate-1.rs
3+
//@ aux-build:anon-extern-mod-cross-crate-1.rs
4+
//@ pretty-expanded FIXME #23616
5+
//@ ignore-wasm32-bare no libc to test ffi with
66

77
extern crate anonexternmod;
88

tests/ui/abi/debug.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// normalize-stderr-test "(abi|pref|unadjusted_abi_align): Align\([1-8] bytes\)" -> "$1: $$SOME_ALIGN"
2-
// normalize-stderr-test "(size): Size\([48] bytes\)" -> "$1: $$SOME_SIZE"
3-
// normalize-stderr-test "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
4-
// normalize-stderr-test "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
1+
//@ normalize-stderr-test "(abi|pref|unadjusted_abi_align): Align\([1-8] bytes\)" -> "$1: $$SOME_ALIGN"
2+
//@ normalize-stderr-test "(size): Size\([48] bytes\)" -> "$1: $$SOME_SIZE"
3+
//@ normalize-stderr-test "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
4+
//@ normalize-stderr-test "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
55
// This pattern is prepared for when we account for alignment in the niche.
6-
// normalize-stderr-test "(valid_range): [1-9]\.\.=(429496729[0-9]|1844674407370955161[0-9])" -> "$1: $$NON_NULL"
6+
//@ normalize-stderr-test "(valid_range): [1-9]\.\.=(429496729[0-9]|1844674407370955161[0-9])" -> "$1: $$NON_NULL"
77
// Some attributes are only computed for release builds:
8-
// compile-flags: -O
8+
//@ compile-flags: -O
99
#![feature(rustc_attrs)]
1010
#![crate_type = "lib"]
1111

tests/ui/abi/explicit_repr_rust.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// check-pass
1+
//@ check-pass
22

33
#[repr(Rust)]
44
struct A;

tests/ui/abi/extern/extern-call-deep.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
2-
// ignore-wasm32-bare no libc to test ffi with
3-
// ignore-emscripten blows the JS stack
1+
//@ run-pass
2+
//@ ignore-wasm32-bare no libc to test ffi with
3+
//@ ignore-emscripten blows the JS stack
44

55
#![feature(rustc_private)]
66

tests/ui/abi/extern/extern-call-deep2.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
1+
//@ run-pass
22
#![allow(unused_must_use)]
3-
// ignore-emscripten no threads support
3+
//@ ignore-emscripten no threads support
44
#![feature(rustc_private)]
55

66
extern crate libc;

tests/ui/abi/extern/extern-call-direct.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@ run-pass
22
// Test direct calls to extern fns.
33

44

tests/ui/abi/extern/extern-call-indirect.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// ignore-wasm32-bare no libc to test ffi with
1+
//@ run-pass
2+
//@ ignore-wasm32-bare no libc to test ffi with
33

44
#![feature(rustc_private)]
55

tests/ui/abi/extern/extern-call-scrub.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// run-pass
1+
//@ run-pass
22
#![allow(unused_must_use)]
33
// This time we're testing repeatedly going up and down both stacks to
44
// make sure the stack pointers are maintained properly in both
55
// directions
66

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

1010
extern crate libc;

tests/ui/abi/extern/extern-crosscrate.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
2-
// aux-build:extern-crosscrate-source.rs
3-
// ignore-wasm32-bare no libc to test ffi with
1+
//@ run-pass
2+
//@ aux-build:extern-crosscrate-source.rs
3+
//@ ignore-wasm32-bare no libc to test ffi with
44

55
#![feature(rustc_private)]
66

tests/ui/abi/extern/extern-pass-TwoU16s.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// run-pass
1+
//@ run-pass
22
#![allow(improper_ctypes)]
33

4-
// ignore-wasm32-bare no libc for ffi testing
4+
//@ ignore-wasm32-bare no libc for ffi testing
55

66
// Test a foreign function that accepts and returns a struct
77
// by value.

tests/ui/abi/extern/extern-pass-TwoU32s.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// run-pass
1+
//@ run-pass
22
#![allow(improper_ctypes)]
33

4-
// ignore-wasm32-bare no libc for ffi testing
4+
//@ ignore-wasm32-bare no libc for ffi testing
55

66
// Test a foreign function that accepts and returns a struct
77
// by value.

tests/ui/abi/extern/extern-pass-TwoU64s.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// run-pass
1+
//@ run-pass
22
#![allow(improper_ctypes)]
33

4-
// ignore-wasm32-bare no libc for ffi testing
4+
//@ ignore-wasm32-bare no libc for ffi testing
55

66
// Test a foreign function that accepts and returns a struct
77
// by value.

tests/ui/abi/extern/extern-pass-TwoU8s.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// run-pass
1+
//@ run-pass
22
#![allow(improper_ctypes)]
33

4-
// ignore-wasm32-bare no libc for ffi testing
4+
//@ ignore-wasm32-bare no libc for ffi testing
55

66
// Test a foreign function that accepts and returns a struct
77
// by value.

tests/ui/abi/extern/extern-pass-char.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// ignore-wasm32-bare no libc for ffi testing
1+
//@ run-pass
2+
//@ ignore-wasm32-bare no libc for ffi testing
33

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

tests/ui/abi/extern/extern-pass-double.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// ignore-wasm32-bare no libc for ffi testing
1+
//@ run-pass
2+
//@ ignore-wasm32-bare no libc for ffi testing
33

44
#[link(name = "rust_test_helpers", kind = "static")]
55
extern "C" {

tests/ui/abi/extern/extern-pass-empty.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// run-pass
1+
//@ run-pass
22
#![allow(improper_ctypes)] // FIXME: this test is inherently not FFI-safe.
33

44
// Test a foreign function that accepts empty struct.
55

6-
// pretty-expanded FIXME #23616
7-
// ignore-msvc
8-
// ignore-emscripten emcc asserts on an empty struct as an argument
6+
//@ pretty-expanded FIXME #23616
7+
//@ ignore-msvc
8+
//@ ignore-emscripten emcc asserts on an empty struct as an argument
99

1010
#[repr(C)]
1111
struct TwoU8s {

tests/ui/abi/extern/extern-pass-u32.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// ignore-wasm32-bare no libc for ffi testing
1+
//@ run-pass
2+
//@ ignore-wasm32-bare no libc for ffi testing
33

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

tests/ui/abi/extern/extern-pass-u64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// ignore-wasm32-bare no libc for ffi testing
1+
//@ run-pass
2+
//@ ignore-wasm32-bare no libc for ffi testing
33

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

0 commit comments

Comments
 (0)