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/str | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/str')
| -rw-r--r-- | tests/ui/str/str-as-char.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/str/str-as-char.rs | 2 | ||||
| -rw-r--r-- | tests/ui/str/str-escape.rs | 4 | ||||
| -rw-r--r-- | tests/ui/str/str-overrun.rs | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/tests/ui/str/str-as-char.fixed b/tests/ui/str/str-as-char.fixed index 42bbef83917..b85f86e0615 100644 --- a/tests/ui/str/str-as-char.fixed +++ b/tests/ui/str/str-as-char.fixed @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix fn main() { println!("●●"); //~ ERROR character literal may only contain one codepoint diff --git a/tests/ui/str/str-as-char.rs b/tests/ui/str/str-as-char.rs index 09b9dfc590d..b815083fada 100644 --- a/tests/ui/str/str-as-char.rs +++ b/tests/ui/str/str-as-char.rs @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix fn main() { println!('●●'); //~ ERROR character literal may only contain one codepoint diff --git a/tests/ui/str/str-escape.rs b/tests/ui/str/str-escape.rs index 89a82171063..6902fe50662 100644 --- a/tests/ui/str/str-escape.rs +++ b/tests/ui/str/str-escape.rs @@ -1,6 +1,6 @@ -// check-pass +//@ check-pass // ignore-tidy-tab -// edition: 2021 +//@ edition: 2021 fn main() { let s = "\ diff --git a/tests/ui/str/str-overrun.rs b/tests/ui/str/str-overrun.rs index a3ec8941322..b8e245475da 100644 --- a/tests/ui/str/str-overrun.rs +++ b/tests/ui/str/str-overrun.rs @@ -1,6 +1,6 @@ -// run-fail -// error-pattern:index out of bounds: the len is 5 but the index is 5 -// ignore-emscripten no processes +//@ run-fail +//@ error-pattern:index out of bounds: the len is 5 but the index is 5 +//@ ignore-emscripten no processes fn main() { let s: String = "hello".to_string(); |
