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/compiletest-self-test | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/compiletest-self-test')
| -rw-r--r-- | tests/ui/compiletest-self-test/compile-flags-last.rs | 4 | ||||
| -rw-r--r-- | tests/ui/compiletest-self-test/ui-testing-optout.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/compiletest-self-test/compile-flags-last.rs b/tests/ui/compiletest-self-test/compile-flags-last.rs index 232df10f1a8..b78a64394b8 100644 --- a/tests/ui/compiletest-self-test/compile-flags-last.rs +++ b/tests/ui/compiletest-self-test/compile-flags-last.rs @@ -3,5 +3,5 @@ // providing it. If the compile-flags are not last, the test will fail as rustc will interpret the // next flag as the argument of this flag. // -// compile-flags: --cap-lints -// error-pattern: Argument to option 'cap-lints' missing +//@ compile-flags: --cap-lints +//@ error-pattern: Argument to option 'cap-lints' missing diff --git a/tests/ui/compiletest-self-test/ui-testing-optout.rs b/tests/ui/compiletest-self-test/ui-testing-optout.rs index 88e81158316..62920a86c3b 100644 --- a/tests/ui/compiletest-self-test/ui-testing-optout.rs +++ b/tests/ui/compiletest-self-test/ui-testing-optout.rs @@ -1,4 +1,4 @@ -// compile-flags: -Z ui-testing=no +//@ compile-flags: -Z ui-testing=no // Line number < 10 type A = B; //~ ERROR |
