about summary refs log tree commit diff
path: root/tests/ui/str
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/str
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-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.fixed2
-rw-r--r--tests/ui/str/str-as-char.rs2
-rw-r--r--tests/ui/str/str-escape.rs4
-rw-r--r--tests/ui/str/str-overrun.rs6
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();