about summary refs log tree commit diff
path: root/tests/ui/pub
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/pub
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz
rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/pub')
-rw-r--r--tests/ui/pub/issue-33174-restricted-type-in-public-interface.rs2
-rw-r--r--tests/ui/pub/pub-ident-fn-2.fixed2
-rw-r--r--tests/ui/pub/pub-ident-fn-2.rs2
-rw-r--r--tests/ui/pub/pub-ident-fn-with-lifetime.fixed2
-rw-r--r--tests/ui/pub/pub-ident-fn-with-lifetime.rs2
-rw-r--r--tests/ui/pub/pub-ident-fn.fixed2
-rw-r--r--tests/ui/pub/pub-ident-fn.rs2
-rw-r--r--tests/ui/pub/pub-ident-struct-4.fixed2
-rw-r--r--tests/ui/pub/pub-ident-struct-4.rs2
-rw-r--r--tests/ui/pub/pub-ident-struct.fixed2
-rw-r--r--tests/ui/pub/pub-ident-struct.rs2
11 files changed, 11 insertions, 11 deletions
diff --git a/tests/ui/pub/issue-33174-restricted-type-in-public-interface.rs b/tests/ui/pub/issue-33174-restricted-type-in-public-interface.rs
index 7930964c83b..9eb8857e5e9 100644
--- a/tests/ui/pub/issue-33174-restricted-type-in-public-interface.rs
+++ b/tests/ui/pub/issue-33174-restricted-type-in-public-interface.rs
@@ -1,4 +1,4 @@
-// check-pass
+//@ check-pass
 
 #![allow(non_camel_case_types)] // genus is always capitalized
 
diff --git a/tests/ui/pub/pub-ident-fn-2.fixed b/tests/ui/pub/pub-ident-fn-2.fixed
index afd75a41f7b..d9da7374e62 100644
--- a/tests/ui/pub/pub-ident-fn-2.fixed
+++ b/tests/ui/pub/pub-ident-fn-2.fixed
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub fn foo(_s: usize) { bar() }
 //~^ ERROR missing `fn` for function definition
diff --git a/tests/ui/pub/pub-ident-fn-2.rs b/tests/ui/pub/pub-ident-fn-2.rs
index e7b86a9098d..4aeb72aef8c 100644
--- a/tests/ui/pub/pub-ident-fn-2.rs
+++ b/tests/ui/pub/pub-ident-fn-2.rs
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub foo(_s: usize) { bar() }
 //~^ ERROR missing `fn` for function definition
diff --git a/tests/ui/pub/pub-ident-fn-with-lifetime.fixed b/tests/ui/pub/pub-ident-fn-with-lifetime.fixed
index e510ace5fc1..2c0d8849cdd 100644
--- a/tests/ui/pub/pub-ident-fn-with-lifetime.fixed
+++ b/tests/ui/pub/pub-ident-fn-with-lifetime.fixed
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub fn foo<'a>(_s: &'a usize) -> bool { true }
 //~^ ERROR missing `fn` for function definition
diff --git a/tests/ui/pub/pub-ident-fn-with-lifetime.rs b/tests/ui/pub/pub-ident-fn-with-lifetime.rs
index 63e6eca1516..8cdc152f163 100644
--- a/tests/ui/pub/pub-ident-fn-with-lifetime.rs
+++ b/tests/ui/pub/pub-ident-fn-with-lifetime.rs
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub   foo<'a>(_s: &'a usize) -> bool { true }
 //~^ ERROR missing `fn` for function definition
diff --git a/tests/ui/pub/pub-ident-fn.fixed b/tests/ui/pub/pub-ident-fn.fixed
index 65ed8c7b4dd..d2aea4e0690 100644
--- a/tests/ui/pub/pub-ident-fn.fixed
+++ b/tests/ui/pub/pub-ident-fn.fixed
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub fn foo(_s: usize) -> bool { true }
 //~^ ERROR missing `fn` for function definition
diff --git a/tests/ui/pub/pub-ident-fn.rs b/tests/ui/pub/pub-ident-fn.rs
index 2fe4d34fb22..899ea82ccb7 100644
--- a/tests/ui/pub/pub-ident-fn.rs
+++ b/tests/ui/pub/pub-ident-fn.rs
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub   foo(_s: usize) -> bool { true }
 //~^ ERROR missing `fn` for function definition
diff --git a/tests/ui/pub/pub-ident-struct-4.fixed b/tests/ui/pub/pub-ident-struct-4.fixed
index 71c6f0a6994..5fedbb72437 100644
--- a/tests/ui/pub/pub-ident-struct-4.fixed
+++ b/tests/ui/pub/pub-ident-struct-4.fixed
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub struct T(#[allow(dead_code)] String);
 //~^ ERROR missing `struct` for struct definition
diff --git a/tests/ui/pub/pub-ident-struct-4.rs b/tests/ui/pub/pub-ident-struct-4.rs
index 971f39a8ce1..5c721c25a78 100644
--- a/tests/ui/pub/pub-ident-struct-4.rs
+++ b/tests/ui/pub/pub-ident-struct-4.rs
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub T(#[allow(dead_code)] String);
 //~^ ERROR missing `struct` for struct definition
diff --git a/tests/ui/pub/pub-ident-struct.fixed b/tests/ui/pub/pub-ident-struct.fixed
index 58cde8fd6e0..3f0610cd765 100644
--- a/tests/ui/pub/pub-ident-struct.fixed
+++ b/tests/ui/pub/pub-ident-struct.fixed
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub struct S {
 //~^ ERROR missing `struct` for struct definition
diff --git a/tests/ui/pub/pub-ident-struct.rs b/tests/ui/pub/pub-ident-struct.rs
index 3930e556e9a..6d06c406f6c 100644
--- a/tests/ui/pub/pub-ident-struct.rs
+++ b/tests/ui/pub/pub-ident-struct.rs
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 pub S {
 //~^ ERROR missing `struct` for struct definition