about summary refs log tree commit diff
path: root/tests/ui/nll/user-annotations
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/nll/user-annotations
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz
rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/nll/user-annotations')
-rw-r--r--tests/ui/nll/user-annotations/ascribed-type-wf.rs2
-rw-r--r--tests/ui/nll/user-annotations/closure-sig.rs2
-rw-r--r--tests/ui/nll/user-annotations/downcast-infer.rs2
-rw-r--r--tests/ui/nll/user-annotations/dump-adt-brace-struct.rs2
-rw-r--r--tests/ui/nll/user-annotations/dump-fn-method.rs2
-rw-r--r--tests/ui/nll/user-annotations/issue-54570-bootstrapping.rs2
-rw-r--r--tests/ui/nll/user-annotations/issue-55219.rs2
-rw-r--r--tests/ui/nll/user-annotations/issue-55241.rs2
-rw-r--r--tests/ui/nll/user-annotations/normalization-2.rs2
-rw-r--r--tests/ui/nll/user-annotations/normalization-default.rs2
-rw-r--r--tests/ui/nll/user-annotations/normalization-infer.rs2
-rw-r--r--tests/ui/nll/user-annotations/normalization-self.rs2
-rw-r--r--tests/ui/nll/user-annotations/normalize-self-ty.rs2
-rw-r--r--tests/ui/nll/user-annotations/type-annotation-with-hrtb.rs2
14 files changed, 14 insertions, 14 deletions
diff --git a/tests/ui/nll/user-annotations/ascribed-type-wf.rs b/tests/ui/nll/user-annotations/ascribed-type-wf.rs
index 5db02c46ec3..ba79085ae86 100644
--- a/tests/ui/nll/user-annotations/ascribed-type-wf.rs
+++ b/tests/ui/nll/user-annotations/ascribed-type-wf.rs
@@ -1,5 +1,5 @@
 // Regression test for #101350.
-// check-fail
+//@ check-fail
 
 trait Trait {
     type Ty;
diff --git a/tests/ui/nll/user-annotations/closure-sig.rs b/tests/ui/nll/user-annotations/closure-sig.rs
index 4dbd3fd8d81..ef2300b99b0 100644
--- a/tests/ui/nll/user-annotations/closure-sig.rs
+++ b/tests/ui/nll/user-annotations/closure-sig.rs
@@ -1,6 +1,6 @@
 // This test fails if #104478 is fixed before #104477.
 
-// check-pass
+//@ check-pass
 
 struct Printer<'a, 'b>(&'a (), &'b ());
 
diff --git a/tests/ui/nll/user-annotations/downcast-infer.rs b/tests/ui/nll/user-annotations/downcast-infer.rs
index b27429f4d19..0c6e0140d7a 100644
--- a/tests/ui/nll/user-annotations/downcast-infer.rs
+++ b/tests/ui/nll/user-annotations/downcast-infer.rs
@@ -1,4 +1,4 @@
-// check-pass
+//@ check-pass
 
 // Check that we don't try to downcast `_` when type-checking the annotation.
 fn main() {
diff --git a/tests/ui/nll/user-annotations/dump-adt-brace-struct.rs b/tests/ui/nll/user-annotations/dump-adt-brace-struct.rs
index 36a16c8dcc6..9a6587a9a74 100644
--- a/tests/ui/nll/user-annotations/dump-adt-brace-struct.rs
+++ b/tests/ui/nll/user-annotations/dump-adt-brace-struct.rs
@@ -1,7 +1,7 @@
 // Unit test for the "user substitutions" that are annotated on each
 // node.
 
-// compile-flags:-Zverbose-internals
+//@ compile-flags:-Zverbose-internals
 
 #![allow(warnings)]
 #![feature(rustc_attrs)]
diff --git a/tests/ui/nll/user-annotations/dump-fn-method.rs b/tests/ui/nll/user-annotations/dump-fn-method.rs
index 086b2d2f6fc..40e705ac538 100644
--- a/tests/ui/nll/user-annotations/dump-fn-method.rs
+++ b/tests/ui/nll/user-annotations/dump-fn-method.rs
@@ -1,7 +1,7 @@
 // Unit test for the "user substitutions" that are annotated on each
 // node.
 
-// compile-flags:-Zverbose-internals
+//@ compile-flags:-Zverbose-internals
 
 #![feature(rustc_attrs)]
 
diff --git a/tests/ui/nll/user-annotations/issue-54570-bootstrapping.rs b/tests/ui/nll/user-annotations/issue-54570-bootstrapping.rs
index ff5b2244e48..433fa51fe09 100644
--- a/tests/ui/nll/user-annotations/issue-54570-bootstrapping.rs
+++ b/tests/ui/nll/user-annotations/issue-54570-bootstrapping.rs
@@ -1,4 +1,4 @@
-// check-pass
+//@ check-pass
 
 // This test is reduced from a scenario pnkfelix encountered while
 // bootstrapping the compiler.
diff --git a/tests/ui/nll/user-annotations/issue-55219.rs b/tests/ui/nll/user-annotations/issue-55219.rs
index 14741366389..70ffb474041 100644
--- a/tests/ui/nll/user-annotations/issue-55219.rs
+++ b/tests/ui/nll/user-annotations/issue-55219.rs
@@ -3,7 +3,7 @@
 // The `Self::HASH_LEN` here expands to a "self-type" where `T` is not
 // known. This unbound inference variable was causing an ICE.
 //
-// check-pass
+//@ check-pass
 
 pub struct Foo<T>(T);
 
diff --git a/tests/ui/nll/user-annotations/issue-55241.rs b/tests/ui/nll/user-annotations/issue-55241.rs
index 29969c7b4c6..094f8da2452 100644
--- a/tests/ui/nll/user-annotations/issue-55241.rs
+++ b/tests/ui/nll/user-annotations/issue-55241.rs
@@ -5,7 +5,7 @@
 // value of `_`; solving that requires having normalized, so we can
 // test against `C: NodeCodec<H>` in the environment.
 //
-// run-pass
+//@ run-pass
 
 pub trait Hasher {
     type Out: Eq;
diff --git a/tests/ui/nll/user-annotations/normalization-2.rs b/tests/ui/nll/user-annotations/normalization-2.rs
index be23c3b7478..dddba2265c6 100644
--- a/tests/ui/nll/user-annotations/normalization-2.rs
+++ b/tests/ui/nll/user-annotations/normalization-2.rs
@@ -1,6 +1,6 @@
 // Make sure we honor region constraints when normalizing type annotations.
 
-// check-fail
+//@ check-fail
 
 #![feature(more_qualified_paths)]
 
diff --git a/tests/ui/nll/user-annotations/normalization-default.rs b/tests/ui/nll/user-annotations/normalization-default.rs
index fa52e6d857f..716211e4371 100644
--- a/tests/ui/nll/user-annotations/normalization-default.rs
+++ b/tests/ui/nll/user-annotations/normalization-default.rs
@@ -1,4 +1,4 @@
-// check-fail
+//@ check-fail
 
 trait Trait { type Assoc; }
 impl<'a> Trait for &'a () { type Assoc = &'a (); }
diff --git a/tests/ui/nll/user-annotations/normalization-infer.rs b/tests/ui/nll/user-annotations/normalization-infer.rs
index 8bfc272d4ba..574ae5650ff 100644
--- a/tests/ui/nll/user-annotations/normalization-infer.rs
+++ b/tests/ui/nll/user-annotations/normalization-infer.rs
@@ -1,7 +1,7 @@
 // Annnotations may contain projection types with inference variables as input.
 // Make sure we don't get ambiguities when normalizing them.
 
-// check-fail
+//@ check-fail
 
 // Single impl.
 fn test1<A, B, C, D>(a: A, b: B, c: C) {
diff --git a/tests/ui/nll/user-annotations/normalization-self.rs b/tests/ui/nll/user-annotations/normalization-self.rs
index c18760b53cf..ebe12b248e8 100644
--- a/tests/ui/nll/user-annotations/normalization-self.rs
+++ b/tests/ui/nll/user-annotations/normalization-self.rs
@@ -1,4 +1,4 @@
-// check-fail
+//@ check-fail
 
 trait Trait { type Assoc; }
 impl<'a> Trait for &'a () { type Assoc = &'a (); }
diff --git a/tests/ui/nll/user-annotations/normalize-self-ty.rs b/tests/ui/nll/user-annotations/normalize-self-ty.rs
index df905c8786a..4ce68902d5d 100644
--- a/tests/ui/nll/user-annotations/normalize-self-ty.rs
+++ b/tests/ui/nll/user-annotations/normalize-self-ty.rs
@@ -2,7 +2,7 @@
 // the inherent impl requires normalization to be equal to the
 // user-provided type.
 //
-// check-pass
+//@ check-pass
 
 trait Mirror {
     type Me;
diff --git a/tests/ui/nll/user-annotations/type-annotation-with-hrtb.rs b/tests/ui/nll/user-annotations/type-annotation-with-hrtb.rs
index 1f7c060386b..9e4234a701d 100644
--- a/tests/ui/nll/user-annotations/type-annotation-with-hrtb.rs
+++ b/tests/ui/nll/user-annotations/type-annotation-with-hrtb.rs
@@ -1,6 +1,6 @@
 // Regression test for issue #69490
 
-// check-pass
+//@ check-pass
 
 pub trait Trait<T> {
     const S: &'static str;