about summary refs log tree commit diff
path: root/tests/ui/generic-const-items
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/generic-const-items
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz
rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/generic-const-items')
-rw-r--r--tests/ui/generic-const-items/associated-const-equality.rs2
-rw-r--r--tests/ui/generic-const-items/basic.rs2
-rw-r--r--tests/ui/generic-const-items/const-trait-impl.rs2
-rw-r--r--tests/ui/generic-const-items/evaluatable-bounds.rs4
-rw-r--r--tests/ui/generic-const-items/misplaced-where-clause.fixed2
-rw-r--r--tests/ui/generic-const-items/misplaced-where-clause.rs2
-rw-r--r--tests/ui/generic-const-items/recursive.rs4
7 files changed, 9 insertions, 9 deletions
diff --git a/tests/ui/generic-const-items/associated-const-equality.rs b/tests/ui/generic-const-items/associated-const-equality.rs
index 785d3aa5018..3c727097e2b 100644
--- a/tests/ui/generic-const-items/associated-const-equality.rs
+++ b/tests/ui/generic-const-items/associated-const-equality.rs
@@ -1,4 +1,4 @@
-// check-pass
+//@ check-pass
 
 #![feature(generic_const_items, associated_const_equality)]
 #![allow(incomplete_features)]
diff --git a/tests/ui/generic-const-items/basic.rs b/tests/ui/generic-const-items/basic.rs
index 73bfa803acd..31a404bac88 100644
--- a/tests/ui/generic-const-items/basic.rs
+++ b/tests/ui/generic-const-items/basic.rs
@@ -1,4 +1,4 @@
-// check-pass
+//@ check-pass
 
 // Basic usage patterns of free & associated generic const items.
 
diff --git a/tests/ui/generic-const-items/const-trait-impl.rs b/tests/ui/generic-const-items/const-trait-impl.rs
index 04c3f3eb434..34be9fe6014 100644
--- a/tests/ui/generic-const-items/const-trait-impl.rs
+++ b/tests/ui/generic-const-items/const-trait-impl.rs
@@ -1,4 +1,4 @@
-// check-pass
+//@ check-pass
 
 // Test that we can call methods from const trait impls inside of generic const items.
 
diff --git a/tests/ui/generic-const-items/evaluatable-bounds.rs b/tests/ui/generic-const-items/evaluatable-bounds.rs
index cdcfcf9188a..1a858f41999 100644
--- a/tests/ui/generic-const-items/evaluatable-bounds.rs
+++ b/tests/ui/generic-const-items/evaluatable-bounds.rs
@@ -1,7 +1,7 @@
 // This is a regression test for issue #104400.
 
-// revisions: unconstrained constrained
-//[constrained] check-pass
+//@ revisions: unconstrained constrained
+//@[constrained] check-pass
 
 // Test that we can constrain generic const items that appear inside associated consts by
 // adding a (makeshift) "evaluatable"-bound to the item.
diff --git a/tests/ui/generic-const-items/misplaced-where-clause.fixed b/tests/ui/generic-const-items/misplaced-where-clause.fixed
index bff470c2883..078df15a5b7 100644
--- a/tests/ui/generic-const-items/misplaced-where-clause.fixed
+++ b/tests/ui/generic-const-items/misplaced-where-clause.fixed
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 #![feature(generic_const_items)]
 #![allow(incomplete_features, dead_code)]
diff --git a/tests/ui/generic-const-items/misplaced-where-clause.rs b/tests/ui/generic-const-items/misplaced-where-clause.rs
index b14c6d594a5..f742738a304 100644
--- a/tests/ui/generic-const-items/misplaced-where-clause.rs
+++ b/tests/ui/generic-const-items/misplaced-where-clause.rs
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 #![feature(generic_const_items)]
 #![allow(incomplete_features, dead_code)]
diff --git a/tests/ui/generic-const-items/recursive.rs b/tests/ui/generic-const-items/recursive.rs
index 3266b37d380..8244772168b 100644
--- a/tests/ui/generic-const-items/recursive.rs
+++ b/tests/ui/generic-const-items/recursive.rs
@@ -1,6 +1,6 @@
 // FIXME(generic_const_items): This leads to a stack overflow in the compiler!
-// known-bug: unknown
-// ignore-test
+//@ known-bug: unknown
+//@ ignore-test
 
 #![feature(generic_const_items)]
 #![allow(incomplete_features)]