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/use | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/use')
| -rw-r--r-- | tests/ui/use/auxiliary/extern-use-primitive-type-lib.rs | 2 | ||||
| -rw-r--r-- | tests/ui/use/issue-18986.rs | 2 | ||||
| -rw-r--r-- | tests/ui/use/issue-60976-extern-use-primitive-type.rs | 4 | ||||
| -rw-r--r-- | tests/ui/use/use-from-trait-xc.rs | 2 | ||||
| -rw-r--r-- | tests/ui/use/use-meta-mismatch.rs | 2 | ||||
| -rw-r--r-- | tests/ui/use/use.rs | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/use/auxiliary/extern-use-primitive-type-lib.rs b/tests/ui/use/auxiliary/extern-use-primitive-type-lib.rs index 3c7756ef7e6..18aa329ae36 100644 --- a/tests/ui/use/auxiliary/extern-use-primitive-type-lib.rs +++ b/tests/ui/use/auxiliary/extern-use-primitive-type-lib.rs @@ -1,3 +1,3 @@ -// compile-flags: --edition=2018 +//@ compile-flags: --edition=2018 pub use u32; diff --git a/tests/ui/use/issue-18986.rs b/tests/ui/use/issue-18986.rs index f0b292f2911..62fd4769a03 100644 --- a/tests/ui/use/issue-18986.rs +++ b/tests/ui/use/issue-18986.rs @@ -1,4 +1,4 @@ -// aux-build:use-from-trait-xc.rs +//@ aux-build:use-from-trait-xc.rs extern crate use_from_trait_xc; pub use use_from_trait_xc::Trait; diff --git a/tests/ui/use/issue-60976-extern-use-primitive-type.rs b/tests/ui/use/issue-60976-extern-use-primitive-type.rs index 4cd458302a4..3e059818ac2 100644 --- a/tests/ui/use/issue-60976-extern-use-primitive-type.rs +++ b/tests/ui/use/issue-60976-extern-use-primitive-type.rs @@ -1,6 +1,6 @@ // Regression test for #60976: ICE (with <=1.36.0) when another file had `use <primitive_type>;`. -// check-pass -// aux-build:extern-use-primitive-type-lib.rs +//@ check-pass +//@ aux-build:extern-use-primitive-type-lib.rs extern crate extern_use_primitive_type_lib; diff --git a/tests/ui/use/use-from-trait-xc.rs b/tests/ui/use/use-from-trait-xc.rs index 695ed66a1c1..b7b9c834b32 100644 --- a/tests/ui/use/use-from-trait-xc.rs +++ b/tests/ui/use/use-from-trait-xc.rs @@ -1,4 +1,4 @@ -// aux-build:use-from-trait-xc.rs +//@ aux-build:use-from-trait-xc.rs extern crate use_from_trait_xc; diff --git a/tests/ui/use/use-meta-mismatch.rs b/tests/ui/use/use-meta-mismatch.rs index 975209efb0c..2c5ae9cd9a1 100644 --- a/tests/ui/use/use-meta-mismatch.rs +++ b/tests/ui/use/use-meta-mismatch.rs @@ -1,4 +1,4 @@ -// error-pattern:can't find crate for `fake_crate` +//@ error-pattern:can't find crate for `fake_crate` extern crate fake_crate as extra; diff --git a/tests/ui/use/use.rs b/tests/ui/use/use.rs index 1beee4a5143..826a049f2bb 100644 --- a/tests/ui/use/use.rs +++ b/tests/ui/use/use.rs @@ -1,7 +1,7 @@ -// run-pass +//@ run-pass #![allow(stable_features)] -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 #![allow(unused_imports)] #![feature(start, no_core, core)] |
