diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
| commit | ec2cc761bc7067712ecc7734502f703fe3b024c8 (patch) | |
| tree | 7ab55cd9562da45b86c959f1b98c199b2b03ca92 /tests/ui/repr | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/repr')
| -rw-r--r-- | tests/ui/repr/16-bit-repr-c-enum.rs | 12 | ||||
| -rw-r--r-- | tests/ui/repr/align-with-extern-c-fn.rs | 2 | ||||
| -rw-r--r-- | tests/ui/repr/aligned_enum_cast.rs | 2 | ||||
| -rw-r--r-- | tests/ui/repr/malformed-repr-hints.rs | 2 | ||||
| -rw-r--r-- | tests/ui/repr/repr-align-assign.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/repr/repr-align-assign.rs | 2 | ||||
| -rw-r--r-- | tests/ui/repr/repr-transparent-issue-87496.rs | 2 | ||||
| -rw-r--r-- | tests/ui/repr/repr-transparent-non-exhaustive.rs | 2 | ||||
| -rw-r--r-- | tests/ui/repr/repr_c_int_align.rs | 4 |
9 files changed, 15 insertions, 15 deletions
diff --git a/tests/ui/repr/16-bit-repr-c-enum.rs b/tests/ui/repr/16-bit-repr-c-enum.rs index 987fd455fcc..2509416ad87 100644 --- a/tests/ui/repr/16-bit-repr-c-enum.rs +++ b/tests/ui/repr/16-bit-repr-c-enum.rs @@ -1,10 +1,10 @@ -// build-pass -// revisions: avr msp430 +//@ build-pass +//@ revisions: avr msp430 // -// [avr] needs-llvm-components: avr -// [avr] compile-flags: --target=avr-unknown-gnu-atmega328 --crate-type=rlib -// [msp430] needs-llvm-components: msp430 -// [msp430] compile-flags: --target=msp430-none-elf --crate-type=rlib +//@ [avr] needs-llvm-components: avr +//@ [avr] compile-flags: --target=avr-unknown-gnu-atmega328 --crate-type=rlib +//@ [msp430] needs-llvm-components: msp430 +//@ [msp430] compile-flags: --target=msp430-none-elf --crate-type=rlib #![feature(no_core, lang_items, intrinsics, staged_api, rustc_attrs)] #![no_core] #![crate_type = "lib"] diff --git a/tests/ui/repr/align-with-extern-c-fn.rs b/tests/ui/repr/align-with-extern-c-fn.rs index 659ef88fce6..4d17d1e8816 100644 --- a/tests/ui/repr/align-with-extern-c-fn.rs +++ b/tests/ui/repr/align-with-extern-c-fn.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass #![allow(stable_features)] #![allow(unused_variables)] diff --git a/tests/ui/repr/aligned_enum_cast.rs b/tests/ui/repr/aligned_enum_cast.rs index 1ddf127172e..276d8f0783a 100644 --- a/tests/ui/repr/aligned_enum_cast.rs +++ b/tests/ui/repr/aligned_enum_cast.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass // allows aligned custom discriminant enums to cast into other types // See the issue #92464 for more info #[allow(dead_code)] diff --git a/tests/ui/repr/malformed-repr-hints.rs b/tests/ui/repr/malformed-repr-hints.rs index 27840b5f835..09c808a041d 100644 --- a/tests/ui/repr/malformed-repr-hints.rs +++ b/tests/ui/repr/malformed-repr-hints.rs @@ -1,7 +1,7 @@ // Regression test for various ICEs inspired by // https://github.com/rust-lang/rust/issues/83921#issuecomment-814640734 -// compile-flags: -Zdeduplicate-diagnostics=yes +//@ compile-flags: -Zdeduplicate-diagnostics=yes #[repr(packed())] //~^ ERROR: incorrect `repr(packed)` attribute format diff --git a/tests/ui/repr/repr-align-assign.fixed b/tests/ui/repr/repr-align-assign.fixed index 59ca22e9728..d40fcadf57b 100644 --- a/tests/ui/repr/repr-align-assign.fixed +++ b/tests/ui/repr/repr-align-assign.fixed @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix #![allow(dead_code)] diff --git a/tests/ui/repr/repr-align-assign.rs b/tests/ui/repr/repr-align-assign.rs index 6b7799297e8..3aff84a91f7 100644 --- a/tests/ui/repr/repr-align-assign.rs +++ b/tests/ui/repr/repr-align-assign.rs @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix #![allow(dead_code)] diff --git a/tests/ui/repr/repr-transparent-issue-87496.rs b/tests/ui/repr/repr-transparent-issue-87496.rs index a4dd45c63f5..d512308377d 100644 --- a/tests/ui/repr/repr-transparent-issue-87496.rs +++ b/tests/ui/repr/repr-transparent-issue-87496.rs @@ -1,6 +1,6 @@ // Regression test for the ICE described in #87496. -// check-pass +//@ check-pass #[repr(transparent)] struct TransparentCustomZst(()); diff --git a/tests/ui/repr/repr-transparent-non-exhaustive.rs b/tests/ui/repr/repr-transparent-non-exhaustive.rs index 84dd3f49239..9894b89e8e4 100644 --- a/tests/ui/repr/repr-transparent-non-exhaustive.rs +++ b/tests/ui/repr/repr-transparent-non-exhaustive.rs @@ -1,6 +1,6 @@ #![deny(repr_transparent_external_private_fields)] -// aux-build: repr-transparent-non-exhaustive.rs +//@ aux-build: repr-transparent-non-exhaustive.rs extern crate repr_transparent_non_exhaustive; use repr_transparent_non_exhaustive::{ diff --git a/tests/ui/repr/repr_c_int_align.rs b/tests/ui/repr/repr_c_int_align.rs index fdd14fc2dbe..0a2a77f75ff 100644 --- a/tests/ui/repr/repr_c_int_align.rs +++ b/tests/ui/repr/repr_c_int_align.rs @@ -1,5 +1,5 @@ -// run-pass -// compile-flags: -O +//@ run-pass +//@ compile-flags: -O #![allow(dead_code)] |
