about summary refs log tree commit diff
path: root/tests/ui/annotate-snippet
diff options
context:
space:
mode:
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
commitec2cc761bc7067712ecc7734502f703fe3b024c8 (patch)
tree7ab55cd9562da45b86c959f1b98c199b2b03ca92 /tests/ui/annotate-snippet
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz
rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/annotate-snippet')
-rw-r--r--tests/ui/annotate-snippet/auxiliary/multispan.rs4
-rw-r--r--tests/ui/annotate-snippet/missing-type.rs4
-rw-r--r--tests/ui/annotate-snippet/multiple-files.rs4
-rw-r--r--tests/ui/annotate-snippet/multispan.rs6
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/ui/annotate-snippet/auxiliary/multispan.rs b/tests/ui/annotate-snippet/auxiliary/multispan.rs
index c05d15643db..b5f1ed9b56a 100644
--- a/tests/ui/annotate-snippet/auxiliary/multispan.rs
+++ b/tests/ui/annotate-snippet/auxiliary/multispan.rs
@@ -1,5 +1,5 @@
-// force-host
-// no-prefer-dynamic
+//@ force-host
+//@ no-prefer-dynamic
 
 #![crate_type = "proc-macro"]
 #![feature(proc_macro_diagnostic, proc_macro_span, proc_macro_def_site)]
diff --git a/tests/ui/annotate-snippet/missing-type.rs b/tests/ui/annotate-snippet/missing-type.rs
index f5facc16b31..ea1c2521103 100644
--- a/tests/ui/annotate-snippet/missing-type.rs
+++ b/tests/ui/annotate-snippet/missing-type.rs
@@ -1,5 +1,5 @@
-// compile-flags: --error-format human-annotate-rs -Z unstable-options
-// error-pattern:cannot find type `Iter` in this scope
+//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
+//@ error-pattern:cannot find type `Iter` in this scope
 
 pub fn main() {
     let x: Iter;
diff --git a/tests/ui/annotate-snippet/multiple-files.rs b/tests/ui/annotate-snippet/multiple-files.rs
index 981cdbb10a9..c67a31d8f07 100644
--- a/tests/ui/annotate-snippet/multiple-files.rs
+++ b/tests/ui/annotate-snippet/multiple-files.rs
@@ -1,5 +1,5 @@
-// aux-build:other_file.rs
-// compile-flags: --error-format human-annotate-rs -Z unstable-options
+//@ aux-build:other_file.rs
+//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
 
 extern crate other_file;
 
diff --git a/tests/ui/annotate-snippet/multispan.rs b/tests/ui/annotate-snippet/multispan.rs
index d7241b80364..c9ec4043e37 100644
--- a/tests/ui/annotate-snippet/multispan.rs
+++ b/tests/ui/annotate-snippet/multispan.rs
@@ -1,6 +1,6 @@
-// aux-build:multispan.rs
-// error-pattern:hello to you, too!
-// compile-flags: --error-format human-annotate-rs -Z unstable-options
+//@ aux-build:multispan.rs
+//@ error-pattern:hello to you, too!
+//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
 
 #![feature(proc_macro_hygiene)]