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/meta | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/meta')
| -rw-r--r-- | tests/ui/meta/auxiliary/env.rs | 2 | ||||
| -rw-r--r-- | tests/ui/meta/expected-error-correct-rev.rs | 2 | ||||
| -rw-r--r-- | tests/ui/meta/meta-expected-error-wrong-rev.rs | 6 | ||||
| -rw-r--r-- | tests/ui/meta/no_std-extern-libc.rs | 2 | ||||
| -rw-r--r-- | tests/ui/meta/revision-bad.rs | 12 | ||||
| -rw-r--r-- | tests/ui/meta/revision-ok.rs | 10 | ||||
| -rw-r--r-- | tests/ui/meta/rustc-env.rs | 8 |
7 files changed, 21 insertions, 21 deletions
diff --git a/tests/ui/meta/auxiliary/env.rs b/tests/ui/meta/auxiliary/env.rs index b3644d8d594..882ed43c369 100644 --- a/tests/ui/meta/auxiliary/env.rs +++ b/tests/ui/meta/auxiliary/env.rs @@ -1,7 +1,7 @@ // Check that aux builds can also use rustc-env, but environment is configured // separately from the main test case. // -// rustc-env:COMPILETEST_BAR=bar +//@ rustc-env:COMPILETEST_BAR=bar pub fn test() { assert_eq!(option_env!("COMPILETEST_FOO"), None); diff --git a/tests/ui/meta/expected-error-correct-rev.rs b/tests/ui/meta/expected-error-correct-rev.rs index 26798c3dfc2..33837337c15 100644 --- a/tests/ui/meta/expected-error-correct-rev.rs +++ b/tests/ui/meta/expected-error-correct-rev.rs @@ -1,4 +1,4 @@ -// revisions: a +//@ revisions: a // Counterpart to `expected-error-wrong-rev.rs` diff --git a/tests/ui/meta/meta-expected-error-wrong-rev.rs b/tests/ui/meta/meta-expected-error-wrong-rev.rs index c30d4fe0a13..de276299482 100644 --- a/tests/ui/meta/meta-expected-error-wrong-rev.rs +++ b/tests/ui/meta/meta-expected-error-wrong-rev.rs @@ -1,7 +1,7 @@ -// ignore-compare-mode-polonius +//@ ignore-compare-mode-polonius -// revisions: a -// should-fail +//@ revisions: a +//@ should-fail // This is a "meta-test" of the compilertest framework itself. In // particular, it includes the right error message, but the message diff --git a/tests/ui/meta/no_std-extern-libc.rs b/tests/ui/meta/no_std-extern-libc.rs index 763ea740a27..919caf9428f 100644 --- a/tests/ui/meta/no_std-extern-libc.rs +++ b/tests/ui/meta/no_std-extern-libc.rs @@ -1,5 +1,5 @@ // Test that `download-rustc` doesn't put duplicate copies of libc in the sysroot. -// check-pass +//@ check-pass #![crate_type = "lib"] #![no_std] #![feature(rustc_private)] diff --git a/tests/ui/meta/revision-bad.rs b/tests/ui/meta/revision-bad.rs index 37ddbe99a9f..c5193b19d9e 100644 --- a/tests/ui/meta/revision-bad.rs +++ b/tests/ui/meta/revision-bad.rs @@ -1,12 +1,12 @@ // Meta test for compiletest: check that when we give the wrong error // patterns, the test fails. -// run-fail -// revisions: foo bar -// should-fail -// needs-run-enabled -//[foo] error-pattern:bar -//[bar] error-pattern:foo +//@ run-fail +//@ revisions: foo bar +//@ should-fail +//@ needs-run-enabled +//@[foo] error-pattern:bar +//@[bar] error-pattern:foo #[cfg(foo)] fn die() { diff --git a/tests/ui/meta/revision-ok.rs b/tests/ui/meta/revision-ok.rs index bbeae41b8bb..c1387f7d18e 100644 --- a/tests/ui/meta/revision-ok.rs +++ b/tests/ui/meta/revision-ok.rs @@ -1,11 +1,11 @@ // Meta test for compiletest: check that when we give the right error // patterns, the test passes. See all `revision-bad.rs`. -// run-fail -// revisions: foo bar -//[foo] error-pattern:foo -//[bar] error-pattern:bar -// ignore-emscripten no processes +//@ run-fail +//@ revisions: foo bar +//@[foo] error-pattern:foo +//@[bar] error-pattern:bar +//@ ignore-emscripten no processes #[cfg(foo)] fn die() { diff --git a/tests/ui/meta/rustc-env.rs b/tests/ui/meta/rustc-env.rs index 7d4e005be10..971f29116bc 100644 --- a/tests/ui/meta/rustc-env.rs +++ b/tests/ui/meta/rustc-env.rs @@ -1,12 +1,12 @@ // Compiletest meta test checking that rustc-env and unset-rustc-env directives // can be used to configure environment for rustc. // -// run-pass -// aux-build:env.rs -// rustc-env:COMPILETEST_FOO=foo +//@ run-pass +//@ aux-build:env.rs +//@ rustc-env:COMPILETEST_FOO=foo // // An environment variable that is likely to be set, but should be safe to unset. -// unset-rustc-env:PWD +//@ unset-rustc-env:PWD extern crate env; |
