about summary refs log tree commit diff
path: root/tests/ui/traits/object
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/traits/object
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz
rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/traits/object')
-rw-r--r--tests/ui/traits/object/auto-dedup.rs2
-rw-r--r--tests/ui/traits/object/bounds-cycle-1.rs2
-rw-r--r--tests/ui/traits/object/bounds-cycle-2.rs2
-rw-r--r--tests/ui/traits/object/bounds-cycle-3.rs2
-rw-r--r--tests/ui/traits/object/bounds-cycle-4.rs2
-rw-r--r--tests/ui/traits/object/exclusion.rs2
-rw-r--r--tests/ui/traits/object/generics.rs2
-rw-r--r--tests/ui/traits/object/issue-33140-traitobject-crate.rs2
-rw-r--r--tests/ui/traits/object/lifetime-first.rs2
-rw-r--r--tests/ui/traits/object/print_vtable_sizes.rs4
-rw-r--r--tests/ui/traits/object/with-lifetime-bound.rs2
-rw-r--r--tests/ui/traits/object/with-self-in-projection-output-good.rs2
-rw-r--r--tests/ui/traits/object/with-self-in-projection-output-repeated-supertrait.rs2
13 files changed, 14 insertions, 14 deletions
diff --git a/tests/ui/traits/object/auto-dedup.rs b/tests/ui/traits/object/auto-dedup.rs
index 39d25eb7fe0..732a504e750 100644
--- a/tests/ui/traits/object/auto-dedup.rs
+++ b/tests/ui/traits/object/auto-dedup.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 
 #![allow(unused_assignments)]
 
diff --git a/tests/ui/traits/object/bounds-cycle-1.rs b/tests/ui/traits/object/bounds-cycle-1.rs
index 3146764927c..4f2e74cc1b0 100644
--- a/tests/ui/traits/object/bounds-cycle-1.rs
+++ b/tests/ui/traits/object/bounds-cycle-1.rs
@@ -1,7 +1,7 @@
 // Check that we don't have a cycle when we try to normalize `Self::U` in the
 // bound below.
 
-// check-pass
+//@ check-pass
 
 trait Is {
     type T;
diff --git a/tests/ui/traits/object/bounds-cycle-2.rs b/tests/ui/traits/object/bounds-cycle-2.rs
index 4c1df38058d..b5d11955f1a 100644
--- a/tests/ui/traits/object/bounds-cycle-2.rs
+++ b/tests/ui/traits/object/bounds-cycle-2.rs
@@ -1,7 +1,7 @@
 // Check that we don't have a cycle when we try to normalize `Self::V` in the
 // bound below.
 
-// check-pass
+//@ check-pass
 
 trait Is {
     type T;
diff --git a/tests/ui/traits/object/bounds-cycle-3.rs b/tests/ui/traits/object/bounds-cycle-3.rs
index 55726a5ae45..1e45f953553 100644
--- a/tests/ui/traits/object/bounds-cycle-3.rs
+++ b/tests/ui/traits/object/bounds-cycle-3.rs
@@ -1,7 +1,7 @@
 // Check that we don't have a cycle when we try to normalize `Self::V` in the
 // bound below.
 
-// check-pass
+//@ check-pass
 
 trait Is {
     type T;
diff --git a/tests/ui/traits/object/bounds-cycle-4.rs b/tests/ui/traits/object/bounds-cycle-4.rs
index f83cb75c7f2..4fbeaa757ca 100644
--- a/tests/ui/traits/object/bounds-cycle-4.rs
+++ b/tests/ui/traits/object/bounds-cycle-4.rs
@@ -1,7 +1,7 @@
 // Check that we don't have a cycle when we try to normalize `Self::U` in the
 // bound below. Make sure that having a lifetime on the trait object doesn't break things
 
-// check-pass
+//@ check-pass
 
 trait Is {
     type T;
diff --git a/tests/ui/traits/object/exclusion.rs b/tests/ui/traits/object/exclusion.rs
index 3abd3bbfccf..1f3432aecb8 100644
--- a/tests/ui/traits/object/exclusion.rs
+++ b/tests/ui/traits/object/exclusion.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 trait Future: 'static {
     // The requirement for Self: Sized must prevent instantiation of
     // Future::forget in vtables, otherwise there's an infinite type
diff --git a/tests/ui/traits/object/generics.rs b/tests/ui/traits/object/generics.rs
index e2e70d43ab8..462b0bc5bb7 100644
--- a/tests/ui/traits/object/generics.rs
+++ b/tests/ui/traits/object/generics.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 // test for #8664
 
 use std::marker;
diff --git a/tests/ui/traits/object/issue-33140-traitobject-crate.rs b/tests/ui/traits/object/issue-33140-traitobject-crate.rs
index 8abd92da362..00ef6430d63 100644
--- a/tests/ui/traits/object/issue-33140-traitobject-crate.rs
+++ b/tests/ui/traits/object/issue-33140-traitobject-crate.rs
@@ -1,4 +1,4 @@
-// check-pass
+//@ check-pass
 
 #![warn(order_dependent_trait_objects)]
 #![allow(dyn_drop)]
diff --git a/tests/ui/traits/object/lifetime-first.rs b/tests/ui/traits/object/lifetime-first.rs
index 33757cb7c0a..867ee08f48c 100644
--- a/tests/ui/traits/object/lifetime-first.rs
+++ b/tests/ui/traits/object/lifetime-first.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 use std::fmt::Display;
 
 static BYTE: u8 = 33;
diff --git a/tests/ui/traits/object/print_vtable_sizes.rs b/tests/ui/traits/object/print_vtable_sizes.rs
index f510608537a..684458d079e 100644
--- a/tests/ui/traits/object/print_vtable_sizes.rs
+++ b/tests/ui/traits/object/print_vtable_sizes.rs
@@ -1,5 +1,5 @@
-// check-pass
-// compile-flags: -Z print-vtable-sizes
+//@ check-pass
+//@ compile-flags: -Z print-vtable-sizes
 #![crate_type = "lib"]
 
 trait A<T: help::V>: AsRef<[T::V]> + AsMut<[T::V]> {}
diff --git a/tests/ui/traits/object/with-lifetime-bound.rs b/tests/ui/traits/object/with-lifetime-bound.rs
index 05aab5e3b08..9053d2f7494 100644
--- a/tests/ui/traits/object/with-lifetime-bound.rs
+++ b/tests/ui/traits/object/with-lifetime-bound.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 // Uncovered during work on new scoping rules for safe destructors
 // as an important use case to support properly.
 
diff --git a/tests/ui/traits/object/with-self-in-projection-output-good.rs b/tests/ui/traits/object/with-self-in-projection-output-good.rs
index d1b7bf6c2d7..30909e7493c 100644
--- a/tests/ui/traits/object/with-self-in-projection-output-good.rs
+++ b/tests/ui/traits/object/with-self-in-projection-output-good.rs
@@ -1,4 +1,4 @@
-// build-pass (FIXME(62277): could be check-pass?)
+//@ build-pass (FIXME(62277): could be check-pass?)
 
 // Regression test related to #56288. Check that a supertrait projection (of
 // `Output`) that references `Self` can be ok if it is referencing a projection (of
diff --git a/tests/ui/traits/object/with-self-in-projection-output-repeated-supertrait.rs b/tests/ui/traits/object/with-self-in-projection-output-repeated-supertrait.rs
index 39e817168f6..2d823097332 100644
--- a/tests/ui/traits/object/with-self-in-projection-output-repeated-supertrait.rs
+++ b/tests/ui/traits/object/with-self-in-projection-output-repeated-supertrait.rs
@@ -1,4 +1,4 @@
-// build-pass (FIXME(62277): could be check-pass?)
+//@ build-pass (FIXME(62277): could be check-pass?)
 
 // FIXME(eddyb) shorten the name so windows doesn't choke on it.
 #![crate_name = "trait_test"]