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/tool-attributes | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/tool-attributes')
| -rw-r--r-- | tests/ui/tool-attributes/diagnostic_item2.rs | 2 | ||||
| -rw-r--r-- | tests/ui/tool-attributes/diagnostic_item3.rs | 2 | ||||
| -rw-r--r-- | tests/ui/tool-attributes/duplicate-diagnostic.rs | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/tool-attributes/diagnostic_item2.rs b/tests/ui/tool-attributes/diagnostic_item2.rs index b32a66b16be..241b69adb8c 100644 --- a/tests/ui/tool-attributes/diagnostic_item2.rs +++ b/tests/ui/tool-attributes/diagnostic_item2.rs @@ -1,4 +1,4 @@ -// check-pass +//@ check-pass #[clippy::diagnostic_item = "mep"] struct Mep; diff --git a/tests/ui/tool-attributes/diagnostic_item3.rs b/tests/ui/tool-attributes/diagnostic_item3.rs index c1a236ed1cc..f210c89c299 100644 --- a/tests/ui/tool-attributes/diagnostic_item3.rs +++ b/tests/ui/tool-attributes/diagnostic_item3.rs @@ -1,4 +1,4 @@ -// check-pass +//@ check-pass #![feature(rustc_attrs)] #[rustc_diagnostic_item = "foomp"] diff --git a/tests/ui/tool-attributes/duplicate-diagnostic.rs b/tests/ui/tool-attributes/duplicate-diagnostic.rs index e2cf9508757..5061bcb9e44 100644 --- a/tests/ui/tool-attributes/duplicate-diagnostic.rs +++ b/tests/ui/tool-attributes/duplicate-diagnostic.rs @@ -1,8 +1,8 @@ -// aux-build: p1.rs -// aux-build: p2.rs +//@ aux-build: p1.rs +//@ aux-build: p2.rs -// error-pattern: duplicate diagnostic item in crate `p2` -// error-pattern: note: the diagnostic item is first defined in crate `p1` +//@ error-pattern: duplicate diagnostic item in crate `p2` +//@ error-pattern: note: the diagnostic item is first defined in crate `p1` #![feature(rustc_attrs)] extern crate p1; |
