about summary refs log tree commit diff
path: root/tests/ui/crate-loading
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/crate-loading
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz
rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/crate-loading')
-rw-r--r--tests/ui/crate-loading/auxiliary/crateresolve1-1.rs4
-rw-r--r--tests/ui/crate-loading/auxiliary/crateresolve1-2.rs4
-rw-r--r--tests/ui/crate-loading/auxiliary/crateresolve1-3.rs4
-rw-r--r--tests/ui/crate-loading/auxiliary/crateresolve2-1.rs2
-rw-r--r--tests/ui/crate-loading/auxiliary/crateresolve2-2.rs2
-rw-r--r--tests/ui/crate-loading/auxiliary/crateresolve2-3.rs2
-rw-r--r--tests/ui/crate-loading/auxiliary/proc-macro.rs4
-rw-r--r--tests/ui/crate-loading/crateresolve1.rs12
-rw-r--r--tests/ui/crate-loading/crateresolve2.rs12
-rw-r--r--tests/ui/crate-loading/cross-compiled-proc-macro.rs8
-rw-r--r--tests/ui/crate-loading/invalid-rlib.rs8
-rw-r--r--tests/ui/crate-loading/missing-std.rs6
12 files changed, 34 insertions, 34 deletions
diff --git a/tests/ui/crate-loading/auxiliary/crateresolve1-1.rs b/tests/ui/crate-loading/auxiliary/crateresolve1-1.rs
index bd9c8483ec2..6649ffd7a2d 100644
--- a/tests/ui/crate-loading/auxiliary/crateresolve1-1.rs
+++ b/tests/ui/crate-loading/auxiliary/crateresolve1-1.rs
@@ -1,5 +1,5 @@
-// compile-flags:-C extra-filename=-1
-// no-prefer-dynamic
+//@ compile-flags:-C extra-filename=-1
+//@ no-prefer-dynamic
 #![crate_name = "crateresolve1"]
 #![crate_type = "lib"]
 
diff --git a/tests/ui/crate-loading/auxiliary/crateresolve1-2.rs b/tests/ui/crate-loading/auxiliary/crateresolve1-2.rs
index bd0f08f45b6..63327c77668 100644
--- a/tests/ui/crate-loading/auxiliary/crateresolve1-2.rs
+++ b/tests/ui/crate-loading/auxiliary/crateresolve1-2.rs
@@ -1,5 +1,5 @@
-// compile-flags:-C extra-filename=-2
-// no-prefer-dynamic
+//@ compile-flags:-C extra-filename=-2
+//@ no-prefer-dynamic
 #![crate_name = "crateresolve1"]
 #![crate_type = "lib"]
 
diff --git a/tests/ui/crate-loading/auxiliary/crateresolve1-3.rs b/tests/ui/crate-loading/auxiliary/crateresolve1-3.rs
index 1226c2fbb46..59ed1836990 100644
--- a/tests/ui/crate-loading/auxiliary/crateresolve1-3.rs
+++ b/tests/ui/crate-loading/auxiliary/crateresolve1-3.rs
@@ -1,5 +1,5 @@
-// compile-flags:-C extra-filename=-3
-// no-prefer-dynamic
+//@ compile-flags:-C extra-filename=-3
+//@ no-prefer-dynamic
 #![crate_name = "crateresolve1"]
 #![crate_type = "lib"]
 
diff --git a/tests/ui/crate-loading/auxiliary/crateresolve2-1.rs b/tests/ui/crate-loading/auxiliary/crateresolve2-1.rs
index e9459ed0719..cd4fcc4084a 100644
--- a/tests/ui/crate-loading/auxiliary/crateresolve2-1.rs
+++ b/tests/ui/crate-loading/auxiliary/crateresolve2-1.rs
@@ -1,4 +1,4 @@
-// compile-flags:-C extra-filename=-1 --emit=metadata
+//@ compile-flags:-C extra-filename=-1 --emit=metadata
 #![crate_name = "crateresolve2"]
 #![crate_type = "lib"]
 
diff --git a/tests/ui/crate-loading/auxiliary/crateresolve2-2.rs b/tests/ui/crate-loading/auxiliary/crateresolve2-2.rs
index c4541682723..b63879c063a 100644
--- a/tests/ui/crate-loading/auxiliary/crateresolve2-2.rs
+++ b/tests/ui/crate-loading/auxiliary/crateresolve2-2.rs
@@ -1,4 +1,4 @@
-// compile-flags:-C extra-filename=-2 --emit=metadata
+//@ compile-flags:-C extra-filename=-2 --emit=metadata
 #![crate_name = "crateresolve2"]
 #![crate_type = "lib"]
 
diff --git a/tests/ui/crate-loading/auxiliary/crateresolve2-3.rs b/tests/ui/crate-loading/auxiliary/crateresolve2-3.rs
index b356db4b6fc..e43cb293a2c 100644
--- a/tests/ui/crate-loading/auxiliary/crateresolve2-3.rs
+++ b/tests/ui/crate-loading/auxiliary/crateresolve2-3.rs
@@ -1,4 +1,4 @@
-// compile-flags:-C extra-filename=-3 --emit=metadata
+//@ compile-flags:-C extra-filename=-3 --emit=metadata
 #![crate_name = "crateresolve2"]
 #![crate_type = "lib"]
 
diff --git a/tests/ui/crate-loading/auxiliary/proc-macro.rs b/tests/ui/crate-loading/auxiliary/proc-macro.rs
index 52631de5757..ad227c069d2 100644
--- a/tests/ui/crate-loading/auxiliary/proc-macro.rs
+++ b/tests/ui/crate-loading/auxiliary/proc-macro.rs
@@ -1,5 +1,5 @@
-// force-host
-// no-prefer-dynamic
+//@ force-host
+//@ no-prefer-dynamic
 #![crate_name = "reproduction"]
 #![crate_type = "proc-macro"]
 
diff --git a/tests/ui/crate-loading/crateresolve1.rs b/tests/ui/crate-loading/crateresolve1.rs
index 61a1ee263ed..2fccb744e82 100644
--- a/tests/ui/crate-loading/crateresolve1.rs
+++ b/tests/ui/crate-loading/crateresolve1.rs
@@ -1,10 +1,10 @@
-// aux-build:crateresolve1-1.rs
-// aux-build:crateresolve1-2.rs
-// aux-build:crateresolve1-3.rs
+//@ aux-build:crateresolve1-1.rs
+//@ aux-build:crateresolve1-2.rs
+//@ aux-build:crateresolve1-3.rs
 
-// normalize-stderr-test: "\.nll/" -> "/"
-// normalize-stderr-test: "\\\?\\" -> ""
-// normalize-stderr-test: "(lib)?crateresolve1-([123])\.[a-z]+" -> "libcrateresolve1-$2.somelib"
+//@ normalize-stderr-test: "\.nll/" -> "/"
+//@ normalize-stderr-test: "\\\?\\" -> ""
+//@ normalize-stderr-test: "(lib)?crateresolve1-([123])\.[a-z]+" -> "libcrateresolve1-$2.somelib"
 
 // NOTE: This test is duplicated at `tests/ui/error-codes/E0464.rs`.
 
diff --git a/tests/ui/crate-loading/crateresolve2.rs b/tests/ui/crate-loading/crateresolve2.rs
index 0774c0dfd32..159ce04c3c4 100644
--- a/tests/ui/crate-loading/crateresolve2.rs
+++ b/tests/ui/crate-loading/crateresolve2.rs
@@ -1,11 +1,11 @@
-// check-fail
+//@ check-fail
 
-// aux-build:crateresolve2-1.rs
-// aux-build:crateresolve2-2.rs
-// aux-build:crateresolve2-3.rs
+//@ aux-build:crateresolve2-1.rs
+//@ aux-build:crateresolve2-2.rs
+//@ aux-build:crateresolve2-3.rs
 
-// normalize-stderr-test: "\.nll/" -> "/"
-// normalize-stderr-test: "\\\?\\" -> ""
+//@ normalize-stderr-test: "\.nll/" -> "/"
+//@ normalize-stderr-test: "\\\?\\" -> ""
 
 extern crate crateresolve2;
 //~^ ERROR multiple candidates for `rmeta` dependency `crateresolve2` found
diff --git a/tests/ui/crate-loading/cross-compiled-proc-macro.rs b/tests/ui/crate-loading/cross-compiled-proc-macro.rs
index c1f4331438e..51431c05865 100644
--- a/tests/ui/crate-loading/cross-compiled-proc-macro.rs
+++ b/tests/ui/crate-loading/cross-compiled-proc-macro.rs
@@ -1,7 +1,7 @@
-// edition:2018
-// compile-flags:--extern reproduction
-// aux-build:proc-macro.rs
-// check-pass
+//@ edition:2018
+//@ compile-flags:--extern reproduction
+//@ aux-build:proc-macro.rs
+//@ check-pass
 
 reproduction::mac!();
 
diff --git a/tests/ui/crate-loading/invalid-rlib.rs b/tests/ui/crate-loading/invalid-rlib.rs
index 0997bee19bb..0b401add8e4 100644
--- a/tests/ui/crate-loading/invalid-rlib.rs
+++ b/tests/ui/crate-loading/invalid-rlib.rs
@@ -1,8 +1,8 @@
-// compile-flags: --crate-type lib --extern foo={{src-base}}/crate-loading/auxiliary/libfoo.rlib
-// normalize-stderr-test: "failed to mmap file '.*auxiliary/libfoo.rlib':.*" -> "failed to mmap file 'auxiliary/libfoo.rlib'"
+//@ compile-flags: --crate-type lib --extern foo={{src-base}}/crate-loading/auxiliary/libfoo.rlib
+//@ normalize-stderr-test: "failed to mmap file '.*auxiliary/libfoo.rlib':.*" -> "failed to mmap file 'auxiliary/libfoo.rlib'"
 // don't emit warn logging, it's basically the same as the errors and it's annoying to normalize
-// rustc-env:RUSTC_LOG=error
-// edition:2018
+//@ rustc-env:RUSTC_LOG=error
+//@ edition:2018
 #![no_std]
 use ::foo; //~ ERROR invalid metadata files for crate `foo`
 //~| NOTE failed to mmap file
diff --git a/tests/ui/crate-loading/missing-std.rs b/tests/ui/crate-loading/missing-std.rs
index 400d9f6e0ba..ca9501cda3a 100644
--- a/tests/ui/crate-loading/missing-std.rs
+++ b/tests/ui/crate-loading/missing-std.rs
@@ -1,6 +1,6 @@
-// compile-flags: --target x86_64-unknown-uefi
-// needs-llvm-components: x86
-// rustc-env:CARGO=/usr/bin/cargo
+//@ compile-flags: --target x86_64-unknown-uefi
+//@ needs-llvm-components: x86
+//@ rustc-env:CARGO=/usr/bin/cargo
 #![feature(no_core)]
 #![no_core]
 extern crate core;