diff options
| 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 |
| commit | ec2cc761bc7067712ecc7734502f703fe3b024c8 (patch) | |
| tree | 7ab55cd9562da45b86c959f1b98c199b2b03ca92 /tests/ui/traits/bound | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/traits/bound')
| -rw-r--r-- | tests/ui/traits/bound/basic.rs | 4 | ||||
| -rw-r--r-- | tests/ui/traits/bound/generic_trait.rs | 2 | ||||
| -rw-r--r-- | tests/ui/traits/bound/impl-comparison-duplicates.rs | 4 | ||||
| -rw-r--r-- | tests/ui/traits/bound/in-arc.rs | 4 | ||||
| -rw-r--r-- | tests/ui/traits/bound/multiple.rs | 4 | ||||
| -rw-r--r-- | tests/ui/traits/bound/not-on-bare-trait-2021.rs | 2 | ||||
| -rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-rpass.rs | 4 | ||||
| -rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-xc.rs | 2 | ||||
| -rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-xc1.rs | 2 | ||||
| -rw-r--r-- | tests/ui/traits/bound/recursion.rs | 4 | ||||
| -rw-r--r-- | tests/ui/traits/bound/same-crate-name.rs | 4 |
11 files changed, 18 insertions, 18 deletions
diff --git a/tests/ui/traits/bound/basic.rs b/tests/ui/traits/bound/basic.rs index 8c8a7eb7d9d..85157fdbf62 100644 --- a/tests/ui/traits/bound/basic.rs +++ b/tests/ui/traits/bound/basic.rs @@ -1,8 +1,8 @@ -// run-pass +//@ run-pass #![allow(dead_code)] #![allow(unconditional_recursion)] -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 trait Foo { } diff --git a/tests/ui/traits/bound/generic_trait.rs b/tests/ui/traits/bound/generic_trait.rs index 2484c5a88fb..6099c38ff8e 100644 --- a/tests/ui/traits/bound/generic_trait.rs +++ b/tests/ui/traits/bound/generic_trait.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass #![allow(dead_code)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] diff --git a/tests/ui/traits/bound/impl-comparison-duplicates.rs b/tests/ui/traits/bound/impl-comparison-duplicates.rs index a59662c2797..68b64de3e96 100644 --- a/tests/ui/traits/bound/impl-comparison-duplicates.rs +++ b/tests/ui/traits/bound/impl-comparison-duplicates.rs @@ -1,9 +1,9 @@ -// check-pass +//@ check-pass // Tests that type parameter bounds on an implementation need not match the // trait exactly, as long as the implementation doesn't demand *more* bounds // than the trait. -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 trait A { fn foo<T: Eq + Ord>(&self); diff --git a/tests/ui/traits/bound/in-arc.rs b/tests/ui/traits/bound/in-arc.rs index a1492c0b982..40a6115e838 100644 --- a/tests/ui/traits/bound/in-arc.rs +++ b/tests/ui/traits/bound/in-arc.rs @@ -1,9 +1,9 @@ -// run-pass +//@ run-pass #![allow(unused_must_use)] // Tests that a heterogeneous list of existential `dyn` types can be put inside an Arc // and shared between threads as long as all types fulfill Send. -// ignore-emscripten no threads support +//@ ignore-emscripten no threads support use std::sync::Arc; use std::sync::mpsc::channel; diff --git a/tests/ui/traits/bound/multiple.rs b/tests/ui/traits/bound/multiple.rs index 868b334070b..385fa8851c1 100644 --- a/tests/ui/traits/bound/multiple.rs +++ b/tests/ui/traits/bound/multiple.rs @@ -1,5 +1,5 @@ -// run-pass -// pretty-expanded FIXME #23616 +//@ run-pass +//@ pretty-expanded FIXME #23616 fn f<T:PartialEq + PartialOrd>(_: T) { } diff --git a/tests/ui/traits/bound/not-on-bare-trait-2021.rs b/tests/ui/traits/bound/not-on-bare-trait-2021.rs index 4c2e6f0852b..07b866cb4a6 100644 --- a/tests/ui/traits/bound/not-on-bare-trait-2021.rs +++ b/tests/ui/traits/bound/not-on-bare-trait-2021.rs @@ -1,4 +1,4 @@ -// edition:2021 +//@ edition:2021 trait Foo { fn dummy(&self) {} } diff --git a/tests/ui/traits/bound/on-structs-and-enums-rpass.rs b/tests/ui/traits/bound/on-structs-and-enums-rpass.rs index 4dc4fecc91f..25e1b6b4bc3 100644 --- a/tests/ui/traits/bound/on-structs-and-enums-rpass.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-rpass.rs @@ -1,7 +1,7 @@ -// run-pass +//@ run-pass #![allow(dead_code)] #![allow(unused_variables)] -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 trait U {} trait T<X: U> { fn get(self) -> X; } diff --git a/tests/ui/traits/bound/on-structs-and-enums-xc.rs b/tests/ui/traits/bound/on-structs-and-enums-xc.rs index 94316d24040..2a32e6dbab8 100644 --- a/tests/ui/traits/bound/on-structs-and-enums-xc.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-xc.rs @@ -1,4 +1,4 @@ -// aux-build:on_structs_and_enums_xc.rs +//@ aux-build:on_structs_and_enums_xc.rs extern crate on_structs_and_enums_xc; diff --git a/tests/ui/traits/bound/on-structs-and-enums-xc1.rs b/tests/ui/traits/bound/on-structs-and-enums-xc1.rs index 5ef35b513e0..5240b76158a 100644 --- a/tests/ui/traits/bound/on-structs-and-enums-xc1.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-xc1.rs @@ -1,4 +1,4 @@ -// aux-build:on_structs_and_enums_xc.rs +//@ aux-build:on_structs_and_enums_xc.rs extern crate on_structs_and_enums_xc; diff --git a/tests/ui/traits/bound/recursion.rs b/tests/ui/traits/bound/recursion.rs index 767040dff3f..1d9832ac917 100644 --- a/tests/ui/traits/bound/recursion.rs +++ b/tests/ui/traits/bound/recursion.rs @@ -1,5 +1,5 @@ -// check-pass -// pretty-expanded FIXME #23616 +//@ check-pass +//@ pretty-expanded FIXME #23616 trait I { fn i(&self) -> Self; } diff --git a/tests/ui/traits/bound/same-crate-name.rs b/tests/ui/traits/bound/same-crate-name.rs index 8d646a41459..06d79a0c8b8 100644 --- a/tests/ui/traits/bound/same-crate-name.rs +++ b/tests/ui/traits/bound/same-crate-name.rs @@ -1,5 +1,5 @@ -// aux-build:crate_a1.rs -// aux-build:crate_a2.rs +//@ aux-build:crate_a1.rs +//@ aux-build:crate_a2.rs // Issue 22750 // This tests the extra help message reported when a trait bound |
