about summary refs log tree commit diff
path: root/tests/ui/errors
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/errors
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz
rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/errors')
-rw-r--r--tests/ui/errors/auxiliary/remapped_dep.rs2
-rw-r--r--tests/ui/errors/issue-104621-extern-bad-file.rs4
-rw-r--r--tests/ui/errors/issue-104621-extern-not-file.rs2
-rw-r--r--tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs2
-rw-r--r--tests/ui/errors/remap-path-prefix-macro.rs12
-rw-r--r--tests/ui/errors/remap-path-prefix-reverse.rs10
-rw-r--r--tests/ui/errors/remap-path-prefix.rs12
7 files changed, 22 insertions, 22 deletions
diff --git a/tests/ui/errors/auxiliary/remapped_dep.rs b/tests/ui/errors/auxiliary/remapped_dep.rs
index f9bb7bf8987..36d4699a306 100644
--- a/tests/ui/errors/auxiliary/remapped_dep.rs
+++ b/tests/ui/errors/auxiliary/remapped_dep.rs
@@ -1,4 +1,4 @@
-// compile-flags: --remap-path-prefix={{src-base}}/errors/auxiliary=remapped-aux
+//@ compile-flags: --remap-path-prefix={{src-base}}/errors/auxiliary=remapped-aux
 // no-remap-src-base: Manually remap, so the remapped path remains in .stderr file.
 
 pub struct SomeStruct {} // This line should be show as part of the error.
diff --git a/tests/ui/errors/issue-104621-extern-bad-file.rs b/tests/ui/errors/issue-104621-extern-bad-file.rs
index 3f13d605232..f675a4a3a4f 100644
--- a/tests/ui/errors/issue-104621-extern-bad-file.rs
+++ b/tests/ui/errors/issue-104621-extern-bad-file.rs
@@ -1,5 +1,5 @@
-// compile-flags: --extern foo={{src-base}}/errors/issue-104621-extern-bad-file.rs
-// only-linux
+//@ compile-flags: --extern foo={{src-base}}/errors/issue-104621-extern-bad-file.rs
+//@ only-linux
 
 extern crate foo;
 //~^ ERROR extern location for foo is of an unknown type
diff --git a/tests/ui/errors/issue-104621-extern-not-file.rs b/tests/ui/errors/issue-104621-extern-not-file.rs
index 899e45a306b..50806df15f7 100644
--- a/tests/ui/errors/issue-104621-extern-not-file.rs
+++ b/tests/ui/errors/issue-104621-extern-not-file.rs
@@ -1,4 +1,4 @@
-// compile-flags: --extern foo=.
+//@ compile-flags: --extern foo=.
 
 extern crate foo; //~ ERROR extern location for foo is not a file: .
 fn main() {}
diff --git a/tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs b/tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs
index a1c7af128d2..dff3d02248b 100644
--- a/tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs
+++ b/tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs
@@ -1,4 +1,4 @@
-// check-pass
+//@ check-pass
 
 trait X {
     fn test(x: u32, (
diff --git a/tests/ui/errors/remap-path-prefix-macro.rs b/tests/ui/errors/remap-path-prefix-macro.rs
index 0ba706b0a8f..665156027c9 100644
--- a/tests/ui/errors/remap-path-prefix-macro.rs
+++ b/tests/ui/errors/remap-path-prefix-macro.rs
@@ -1,10 +1,10 @@
-// run-pass
-// check-run-results
+//@ run-pass
+//@ check-run-results
 
-// revisions: normal with-macro-scope without-macro-scope
-// compile-flags: --remap-path-prefix={{src-base}}=remapped
-// [with-macro-scope]compile-flags: -Zremap-path-scope=macro,diagnostics
-// [without-macro-scope]compile-flags: -Zremap-path-scope=diagnostics
+//@ revisions: normal with-macro-scope without-macro-scope
+//@ compile-flags: --remap-path-prefix={{src-base}}=remapped
+//@ [with-macro-scope]compile-flags: -Zremap-path-scope=macro,diagnostics
+//@ [without-macro-scope]compile-flags: -Zremap-path-scope=diagnostics
 // no-remap-src-base: Manually remap, so the remapped path remains in .stderr file.
 
 fn main() {
diff --git a/tests/ui/errors/remap-path-prefix-reverse.rs b/tests/ui/errors/remap-path-prefix-reverse.rs
index 71c80063c32..7743e38f50f 100644
--- a/tests/ui/errors/remap-path-prefix-reverse.rs
+++ b/tests/ui/errors/remap-path-prefix-reverse.rs
@@ -1,12 +1,12 @@
-// aux-build:remapped_dep.rs
-// compile-flags: --remap-path-prefix={{src-base}}/errors/auxiliary=remapped-aux
+//@ aux-build:remapped_dep.rs
+//@ compile-flags: --remap-path-prefix={{src-base}}/errors/auxiliary=remapped-aux
 
-// revisions: local-self remapped-self
+//@ revisions: local-self remapped-self
 // [local-self] no-remap-src-base: The hack should work regardless of remapping.
-// [remapped-self] remap-src-base
+//@ [remapped-self] remap-src-base
 
 // Verify that the expected source code is shown.
-// error-pattern: pub struct SomeStruct {} // This line should be show
+//@ error-pattern: pub struct SomeStruct {} // This line should be show
 
 extern crate remapped_dep;
 
diff --git a/tests/ui/errors/remap-path-prefix.rs b/tests/ui/errors/remap-path-prefix.rs
index e3338c10fd7..6283a8737ff 100644
--- a/tests/ui/errors/remap-path-prefix.rs
+++ b/tests/ui/errors/remap-path-prefix.rs
@@ -1,15 +1,15 @@
-// revisions: normal with-diagnostic-scope without-diagnostic-scope
-// compile-flags: --remap-path-prefix={{src-base}}=remapped
-// [with-diagnostic-scope]compile-flags: -Zremap-path-scope=diagnostics
-// [without-diagnostic-scope]compile-flags: -Zremap-path-scope=object
+//@ revisions: normal with-diagnostic-scope without-diagnostic-scope
+//@ compile-flags: --remap-path-prefix={{src-base}}=remapped
+//@ [with-diagnostic-scope]compile-flags: -Zremap-path-scope=diagnostics
+//@ [without-diagnostic-scope]compile-flags: -Zremap-path-scope=object
 // no-remap-src-base: Manually remap, so the remapped path remains in .stderr file.
 
 // The remapped paths are not normalized by compiletest.
-// normalize-stderr-test: "\\(errors)" -> "/$1"
+//@ normalize-stderr-test: "\\(errors)" -> "/$1"
 
 // The remapped paths aren't recognized by compiletest, so we
 // cannot use line-specific patterns.
-// error-pattern: E0425
+//@ error-pattern: E0425
 
 fn main() {
     // We cannot actually put an ERROR marker here because