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/structs | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/structs')
| -rw-r--r-- | tests/ui/structs/large-records.rs | 4 | ||||
| -rw-r--r-- | tests/ui/structs/rhs-type.rs | 6 | ||||
| -rw-r--r-- | tests/ui/structs/struct-duplicate-comma.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/structs/struct-duplicate-comma.rs | 2 | ||||
| -rw-r--r-- | tests/ui/structs/struct-field-privacy.rs | 2 | ||||
| -rw-r--r-- | tests/ui/structs/struct-missing-comma.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/structs/struct-missing-comma.rs | 2 | ||||
| -rw-r--r-- | tests/ui/structs/struct-record-suggestion.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/structs/struct-record-suggestion.rs | 2 | ||||
| -rw-r--r-- | tests/ui/structs/struct-variant-privacy-xc.rs | 2 | ||||
| -rw-r--r-- | tests/ui/structs/suggest-private-fields.rs | 2 |
11 files changed, 14 insertions, 14 deletions
diff --git a/tests/ui/structs/large-records.rs b/tests/ui/structs/large-records.rs index 7f850a94e89..c78b6259667 100644 --- a/tests/ui/structs/large-records.rs +++ b/tests/ui/structs/large-records.rs @@ -1,11 +1,11 @@ -// run-pass +//@ run-pass #![allow(dead_code)] -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 struct Large {a: isize, b: isize, diff --git a/tests/ui/structs/rhs-type.rs b/tests/ui/structs/rhs-type.rs index c48e7c08ed2..fde5c16a068 100644 --- a/tests/ui/structs/rhs-type.rs +++ b/tests/ui/structs/rhs-type.rs @@ -1,9 +1,9 @@ // Tests that codegen treats the rhs of pth's decl // as a _|_-typed thing, not a str-typed thing -// run-fail -// error-pattern:bye -// ignore-emscripten no processes +//@ run-fail +//@ error-pattern:bye +//@ ignore-emscripten no processes #![allow(unreachable_code)] #![allow(unused_variables)] diff --git a/tests/ui/structs/struct-duplicate-comma.fixed b/tests/ui/structs/struct-duplicate-comma.fixed index c804cf57aba..2f40f960975 100644 --- a/tests/ui/structs/struct-duplicate-comma.fixed +++ b/tests/ui/structs/struct-duplicate-comma.fixed @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix // Issue #50974 pub struct Foo { diff --git a/tests/ui/structs/struct-duplicate-comma.rs b/tests/ui/structs/struct-duplicate-comma.rs index db2e7cb3d05..5982cea93f5 100644 --- a/tests/ui/structs/struct-duplicate-comma.rs +++ b/tests/ui/structs/struct-duplicate-comma.rs @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix // Issue #50974 pub struct Foo { diff --git a/tests/ui/structs/struct-field-privacy.rs b/tests/ui/structs/struct-field-privacy.rs index 898ca475cb1..d70dd5c7005 100644 --- a/tests/ui/structs/struct-field-privacy.rs +++ b/tests/ui/structs/struct-field-privacy.rs @@ -1,4 +1,4 @@ -// aux-build:struct_field_privacy.rs +//@ aux-build:struct_field_privacy.rs extern crate struct_field_privacy as xc; diff --git a/tests/ui/structs/struct-missing-comma.fixed b/tests/ui/structs/struct-missing-comma.fixed index a28179ba241..800128f503b 100644 --- a/tests/ui/structs/struct-missing-comma.fixed +++ b/tests/ui/structs/struct-missing-comma.fixed @@ -1,5 +1,5 @@ // Issue #50636 -// run-rustfix +//@ run-rustfix pub struct S { pub foo: u32, //~ expected `,`, or `}`, found keyword `pub` diff --git a/tests/ui/structs/struct-missing-comma.rs b/tests/ui/structs/struct-missing-comma.rs index b6d6c9b8f87..b9d8c9eb303 100644 --- a/tests/ui/structs/struct-missing-comma.rs +++ b/tests/ui/structs/struct-missing-comma.rs @@ -1,5 +1,5 @@ // Issue #50636 -// run-rustfix +//@ run-rustfix pub struct S { pub foo: u32 //~ expected `,`, or `}`, found keyword `pub` diff --git a/tests/ui/structs/struct-record-suggestion.fixed b/tests/ui/structs/struct-record-suggestion.fixed index d93a62185b3..25112380704 100644 --- a/tests/ui/structs/struct-record-suggestion.fixed +++ b/tests/ui/structs/struct-record-suggestion.fixed @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix #[derive(Debug, Default, Eq, PartialEq)] struct A { b: u32, diff --git a/tests/ui/structs/struct-record-suggestion.rs b/tests/ui/structs/struct-record-suggestion.rs index f0fd1c94e9a..9c4be68153a 100644 --- a/tests/ui/structs/struct-record-suggestion.rs +++ b/tests/ui/structs/struct-record-suggestion.rs @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix #[derive(Debug, Default, Eq, PartialEq)] struct A { b: u32, diff --git a/tests/ui/structs/struct-variant-privacy-xc.rs b/tests/ui/structs/struct-variant-privacy-xc.rs index 763ab952738..729ce11f442 100644 --- a/tests/ui/structs/struct-variant-privacy-xc.rs +++ b/tests/ui/structs/struct-variant-privacy-xc.rs @@ -1,4 +1,4 @@ -// aux-build:struct_variant_privacy.rs +//@ aux-build:struct_variant_privacy.rs extern crate struct_variant_privacy; fn f(b: struct_variant_privacy::Bar) { diff --git a/tests/ui/structs/suggest-private-fields.rs b/tests/ui/structs/suggest-private-fields.rs index 8267a82fe2a..b3bae58a6e4 100644 --- a/tests/ui/structs/suggest-private-fields.rs +++ b/tests/ui/structs/suggest-private-fields.rs @@ -1,4 +1,4 @@ -// aux-build:struct_field_privacy.rs +//@ aux-build:struct_field_privacy.rs extern crate struct_field_privacy as xc; |
