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/thread-local | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/thread-local')
| -rw-r--r-- | tests/ui/thread-local/auxiliary/tls-rlib.rs | 2 | ||||
| -rw-r--r-- | tests/ui/thread-local/name-collision.rs | 2 | ||||
| -rw-r--r-- | tests/ui/thread-local/thread-local-issue-37508.rs | 6 | ||||
| -rw-r--r-- | tests/ui/thread-local/thread-local-static-ref-use-after-free.rs | 6 | ||||
| -rw-r--r-- | tests/ui/thread-local/thread-local-static.rs | 2 | ||||
| -rw-r--r-- | tests/ui/thread-local/tls-dylib-access.rs | 6 | ||||
| -rw-r--r-- | tests/ui/thread-local/tls.rs | 8 |
7 files changed, 16 insertions, 16 deletions
diff --git a/tests/ui/thread-local/auxiliary/tls-rlib.rs b/tests/ui/thread-local/auxiliary/tls-rlib.rs index 20bc998ec11..42bbfc46154 100644 --- a/tests/ui/thread-local/auxiliary/tls-rlib.rs +++ b/tests/ui/thread-local/auxiliary/tls-rlib.rs @@ -1,4 +1,4 @@ -// no-prefer-dynamic +//@ no-prefer-dynamic #![crate_type = "rlib"] #![feature(thread_local)] diff --git a/tests/ui/thread-local/name-collision.rs b/tests/ui/thread-local/name-collision.rs index dcff9183ad9..fba7b680679 100644 --- a/tests/ui/thread-local/name-collision.rs +++ b/tests/ui/thread-local/name-collision.rs @@ -1,4 +1,4 @@ -// check-pass +//@ check-pass #[allow(non_camel_case_types)] struct u8; diff --git a/tests/ui/thread-local/thread-local-issue-37508.rs b/tests/ui/thread-local/thread-local-issue-37508.rs index 219108c77f7..db430a3229c 100644 --- a/tests/ui/thread-local/thread-local-issue-37508.rs +++ b/tests/ui/thread-local/thread-local-issue-37508.rs @@ -1,6 +1,6 @@ -// only-x86_64 -// compile-flags: -Ccode-model=large --crate-type lib -// build-pass +//@ only-x86_64 +//@ compile-flags: -Ccode-model=large --crate-type lib +//@ build-pass // // Regression test for issue #37508 diff --git a/tests/ui/thread-local/thread-local-static-ref-use-after-free.rs b/tests/ui/thread-local/thread-local-static-ref-use-after-free.rs index c282e2185bc..094ce2994b8 100644 --- a/tests/ui/thread-local/thread-local-static-ref-use-after-free.rs +++ b/tests/ui/thread-local/thread-local-static-ref-use-after-free.rs @@ -1,6 +1,6 @@ -// check-pass -// known-bug: #49682 -// edition:2021 +//@ check-pass +//@ known-bug: #49682 +//@ edition:2021 // Should fail. Keeping references to thread local statics can result in a // use-after-free. diff --git a/tests/ui/thread-local/thread-local-static.rs b/tests/ui/thread-local/thread-local-static.rs index a2c1954881f..a1b72323f71 100644 --- a/tests/ui/thread-local/thread-local-static.rs +++ b/tests/ui/thread-local/thread-local-static.rs @@ -1,4 +1,4 @@ -// edition:2018 +//@ edition:2018 #![feature(thread_local)] #![feature(const_swap)] diff --git a/tests/ui/thread-local/tls-dylib-access.rs b/tests/ui/thread-local/tls-dylib-access.rs index 12c46113cea..53b01674d77 100644 --- a/tests/ui/thread-local/tls-dylib-access.rs +++ b/tests/ui/thread-local/tls-dylib-access.rs @@ -1,6 +1,6 @@ -// aux-build: tls-rlib.rs -// aux-build: tls-export.rs -// run-pass +//@ aux-build: tls-rlib.rs +//@ aux-build: tls-export.rs +//@ run-pass #![feature(cfg_target_thread_local)] diff --git a/tests/ui/thread-local/tls.rs b/tests/ui/thread-local/tls.rs index f03bd3f991b..17096319d23 100644 --- a/tests/ui/thread-local/tls.rs +++ b/tests/ui/thread-local/tls.rs @@ -1,7 +1,7 @@ -// run-pass -// ignore-emscripten no threads support -// compile-flags: -O -// ignore-nto Doesn't work without emulated TLS enabled (in LLVM) +//@ run-pass +//@ ignore-emscripten no threads support +//@ compile-flags: -O +//@ ignore-nto Doesn't work without emulated TLS enabled (in LLVM) #![feature(thread_local)] |
