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/allocator | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/allocator')
| -rw-r--r-- | tests/ui/allocator/auxiliary/custom-as-global.rs | 2 | ||||
| -rw-r--r-- | tests/ui/allocator/auxiliary/custom.rs | 2 | ||||
| -rw-r--r-- | tests/ui/allocator/auxiliary/helper.rs | 2 | ||||
| -rw-r--r-- | tests/ui/allocator/auxiliary/system-allocator.rs | 2 | ||||
| -rw-r--r-- | tests/ui/allocator/auxiliary/system-allocator2.rs | 2 | ||||
| -rw-r--r-- | tests/ui/allocator/custom-in-block.rs | 8 | ||||
| -rw-r--r-- | tests/ui/allocator/custom-in-submodule.rs | 8 | ||||
| -rw-r--r-- | tests/ui/allocator/custom.rs | 6 | ||||
| -rw-r--r-- | tests/ui/allocator/hygiene.rs | 8 | ||||
| -rw-r--r-- | tests/ui/allocator/no_std-alloc-error-handler-custom.rs | 16 | ||||
| -rw-r--r-- | tests/ui/allocator/no_std-alloc-error-handler-default.rs | 16 | ||||
| -rw-r--r-- | tests/ui/allocator/object-safe.rs | 2 | ||||
| -rw-r--r-- | tests/ui/allocator/two-allocators2.rs | 6 | ||||
| -rw-r--r-- | tests/ui/allocator/two-allocators3.rs | 8 | ||||
| -rw-r--r-- | tests/ui/allocator/xcrate-use.rs | 8 | ||||
| -rw-r--r-- | tests/ui/allocator/xcrate-use2.rs | 10 |
16 files changed, 53 insertions, 53 deletions
diff --git a/tests/ui/allocator/auxiliary/custom-as-global.rs b/tests/ui/allocator/auxiliary/custom-as-global.rs index a5e96e77501..89e7e779b09 100644 --- a/tests/ui/allocator/auxiliary/custom-as-global.rs +++ b/tests/ui/allocator/auxiliary/custom-as-global.rs @@ -1,4 +1,4 @@ -// no-prefer-dynamic +//@ no-prefer-dynamic #![crate_type = "rlib"] diff --git a/tests/ui/allocator/auxiliary/custom.rs b/tests/ui/allocator/auxiliary/custom.rs index b0ec9ab0929..b6835307dec 100644 --- a/tests/ui/allocator/auxiliary/custom.rs +++ b/tests/ui/allocator/auxiliary/custom.rs @@ -1,4 +1,4 @@ -// no-prefer-dynamic +//@ no-prefer-dynamic #![feature(allocator_api)] #![crate_type = "rlib"] diff --git a/tests/ui/allocator/auxiliary/helper.rs b/tests/ui/allocator/auxiliary/helper.rs index 008fb3501d9..c638546a947 100644 --- a/tests/ui/allocator/auxiliary/helper.rs +++ b/tests/ui/allocator/auxiliary/helper.rs @@ -1,4 +1,4 @@ -// no-prefer-dynamic +//@ no-prefer-dynamic #![crate_type = "rlib"] #![no_std] diff --git a/tests/ui/allocator/auxiliary/system-allocator.rs b/tests/ui/allocator/auxiliary/system-allocator.rs index 97b86bbc96d..bfd04e1e0ba 100644 --- a/tests/ui/allocator/auxiliary/system-allocator.rs +++ b/tests/ui/allocator/auxiliary/system-allocator.rs @@ -1,4 +1,4 @@ -// no-prefer-dynamic +//@ no-prefer-dynamic #![crate_type = "rlib"] diff --git a/tests/ui/allocator/auxiliary/system-allocator2.rs b/tests/ui/allocator/auxiliary/system-allocator2.rs index 97b86bbc96d..bfd04e1e0ba 100644 --- a/tests/ui/allocator/auxiliary/system-allocator2.rs +++ b/tests/ui/allocator/auxiliary/system-allocator2.rs @@ -1,4 +1,4 @@ -// no-prefer-dynamic +//@ no-prefer-dynamic #![crate_type = "rlib"] diff --git a/tests/ui/allocator/custom-in-block.rs b/tests/ui/allocator/custom-in-block.rs index 12813a1fc8b..4a8501aa3d2 100644 --- a/tests/ui/allocator/custom-in-block.rs +++ b/tests/ui/allocator/custom-in-block.rs @@ -1,7 +1,7 @@ -// run-pass -// no-prefer-dynamic -// aux-build:custom.rs -// aux-build:helper.rs +//@ run-pass +//@ no-prefer-dynamic +//@ aux-build:custom.rs +//@ aux-build:helper.rs extern crate custom; extern crate helper; diff --git a/tests/ui/allocator/custom-in-submodule.rs b/tests/ui/allocator/custom-in-submodule.rs index ea341b1ac14..f9b1b5237d7 100644 --- a/tests/ui/allocator/custom-in-submodule.rs +++ b/tests/ui/allocator/custom-in-submodule.rs @@ -1,7 +1,7 @@ -// run-pass -// no-prefer-dynamic -// aux-build:custom.rs -// aux-build:helper.rs +//@ run-pass +//@ no-prefer-dynamic +//@ aux-build:custom.rs +//@ aux-build:helper.rs extern crate custom; extern crate helper; diff --git a/tests/ui/allocator/custom.rs b/tests/ui/allocator/custom.rs index 10cbc23c427..97de54dd4d6 100644 --- a/tests/ui/allocator/custom.rs +++ b/tests/ui/allocator/custom.rs @@ -1,7 +1,7 @@ -// run-pass +//@ run-pass -// aux-build:helper.rs -// no-prefer-dynamic +//@ aux-build:helper.rs +//@ no-prefer-dynamic #![feature(allocator_api)] #![feature(slice_ptr_get)] diff --git a/tests/ui/allocator/hygiene.rs b/tests/ui/allocator/hygiene.rs index 9bd8406a276..9bf04e20f18 100644 --- a/tests/ui/allocator/hygiene.rs +++ b/tests/ui/allocator/hygiene.rs @@ -1,7 +1,7 @@ -// run-pass -// no-prefer-dynamic -// aux-build:custom.rs -// aux-build:helper.rs +//@ run-pass +//@ no-prefer-dynamic +//@ aux-build:custom.rs +//@ aux-build:helper.rs #![allow(nonstandard_style)] diff --git a/tests/ui/allocator/no_std-alloc-error-handler-custom.rs b/tests/ui/allocator/no_std-alloc-error-handler-custom.rs index 2323cf46d6f..f4825a910b0 100644 --- a/tests/ui/allocator/no_std-alloc-error-handler-custom.rs +++ b/tests/ui/allocator/no_std-alloc-error-handler-custom.rs @@ -1,11 +1,11 @@ -// run-pass -// ignore-android no libc -// ignore-emscripten no libc -// ignore-sgx no libc -// ignore-wasm32 no libc -// only-linux -// compile-flags:-C panic=abort -// aux-build:helper.rs +//@ run-pass +//@ ignore-android no libc +//@ ignore-emscripten no libc +//@ ignore-sgx no libc +//@ ignore-wasm32 no libc +//@ only-linux +//@ compile-flags:-C panic=abort +//@ aux-build:helper.rs #![feature(rustc_private, lang_items)] #![feature(alloc_error_handler)] diff --git a/tests/ui/allocator/no_std-alloc-error-handler-default.rs b/tests/ui/allocator/no_std-alloc-error-handler-default.rs index 488434a9a72..1fa1797bf9c 100644 --- a/tests/ui/allocator/no_std-alloc-error-handler-default.rs +++ b/tests/ui/allocator/no_std-alloc-error-handler-default.rs @@ -1,11 +1,11 @@ -// run-pass -// ignore-android no libc -// ignore-emscripten no libc -// ignore-sgx no libc -// ignore-wasm32 no libc -// only-linux -// compile-flags:-C panic=abort -// aux-build:helper.rs +//@ run-pass +//@ ignore-android no libc +//@ ignore-emscripten no libc +//@ ignore-sgx no libc +//@ ignore-wasm32 no libc +//@ only-linux +//@ compile-flags:-C panic=abort +//@ aux-build:helper.rs #![feature(rustc_private, lang_items)] #![no_std] diff --git a/tests/ui/allocator/object-safe.rs b/tests/ui/allocator/object-safe.rs index fae7ab7fe33..1c1f4fe0bf6 100644 --- a/tests/ui/allocator/object-safe.rs +++ b/tests/ui/allocator/object-safe.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass // Check that `Allocator` is object safe, this allows for polymorphic allocators diff --git a/tests/ui/allocator/two-allocators2.rs b/tests/ui/allocator/two-allocators2.rs index 6dfefe19c7f..b3bb4598c77 100644 --- a/tests/ui/allocator/two-allocators2.rs +++ b/tests/ui/allocator/two-allocators2.rs @@ -1,6 +1,6 @@ -// aux-build:system-allocator.rs -// no-prefer-dynamic -// error-pattern: the `#[global_allocator]` in +//@ aux-build:system-allocator.rs +//@ no-prefer-dynamic +//@ error-pattern: the `#[global_allocator]` in extern crate system_allocator; diff --git a/tests/ui/allocator/two-allocators3.rs b/tests/ui/allocator/two-allocators3.rs index 31dea2d4478..0cb3879666d 100644 --- a/tests/ui/allocator/two-allocators3.rs +++ b/tests/ui/allocator/two-allocators3.rs @@ -1,7 +1,7 @@ -// aux-build:system-allocator.rs -// aux-build:system-allocator2.rs -// no-prefer-dynamic -// error-pattern: the `#[global_allocator]` in +//@ aux-build:system-allocator.rs +//@ aux-build:system-allocator2.rs +//@ no-prefer-dynamic +//@ error-pattern: the `#[global_allocator]` in extern crate system_allocator; diff --git a/tests/ui/allocator/xcrate-use.rs b/tests/ui/allocator/xcrate-use.rs index edd4df75e8b..5934d739813 100644 --- a/tests/ui/allocator/xcrate-use.rs +++ b/tests/ui/allocator/xcrate-use.rs @@ -1,8 +1,8 @@ -// run-pass +//@ run-pass -// aux-build:custom.rs -// aux-build:helper.rs -// no-prefer-dynamic +//@ aux-build:custom.rs +//@ aux-build:helper.rs +//@ no-prefer-dynamic #![feature(allocator_api)] #![feature(slice_ptr_get)] diff --git a/tests/ui/allocator/xcrate-use2.rs b/tests/ui/allocator/xcrate-use2.rs index d8478fb5eaa..a48b0beeb07 100644 --- a/tests/ui/allocator/xcrate-use2.rs +++ b/tests/ui/allocator/xcrate-use2.rs @@ -1,9 +1,9 @@ -// run-pass +//@ run-pass -// aux-build:custom.rs -// aux-build:custom-as-global.rs -// aux-build:helper.rs -// no-prefer-dynamic +//@ aux-build:custom.rs +//@ aux-build:custom-as-global.rs +//@ aux-build:helper.rs +//@ no-prefer-dynamic #![feature(allocator_api)] |
