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/consts/extra-const-ub | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/consts/extra-const-ub')
| -rw-r--r-- | tests/ui/consts/extra-const-ub/detect-extra-ub.rs | 6 | ||||
| -rw-r--r-- | tests/ui/consts/extra-const-ub/issue-100771.rs | 4 | ||||
| -rw-r--r-- | tests/ui/consts/extra-const-ub/issue-101034.rs | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/ui/consts/extra-const-ub/detect-extra-ub.rs b/tests/ui/consts/extra-const-ub/detect-extra-ub.rs index 39f918379d1..d2b157e03e7 100644 --- a/tests/ui/consts/extra-const-ub/detect-extra-ub.rs +++ b/tests/ui/consts/extra-const-ub/detect-extra-ub.rs @@ -1,6 +1,6 @@ -// revisions: no_flag with_flag -// [no_flag] check-pass -// [with_flag] compile-flags: -Zextra-const-ub-checks +//@ revisions: no_flag with_flag +//@ [no_flag] check-pass +//@ [with_flag] compile-flags: -Zextra-const-ub-checks #![feature(never_type)] use std::mem::transmute; diff --git a/tests/ui/consts/extra-const-ub/issue-100771.rs b/tests/ui/consts/extra-const-ub/issue-100771.rs index a3296032841..1ae6f25f7b1 100644 --- a/tests/ui/consts/extra-const-ub/issue-100771.rs +++ b/tests/ui/consts/extra-const-ub/issue-100771.rs @@ -1,5 +1,5 @@ -// check-pass -// compile-flags: -Zextra-const-ub-checks +//@ check-pass +//@ compile-flags: -Zextra-const-ub-checks #[derive(PartialEq, Eq, Copy, Clone)] #[repr(packed)] diff --git a/tests/ui/consts/extra-const-ub/issue-101034.rs b/tests/ui/consts/extra-const-ub/issue-101034.rs index e0de705c488..cb0a0fb0d5b 100644 --- a/tests/ui/consts/extra-const-ub/issue-101034.rs +++ b/tests/ui/consts/extra-const-ub/issue-101034.rs @@ -1,5 +1,5 @@ -// check-pass -// compile-flags: -Zextra-const-ub-checks +//@ check-pass +//@ compile-flags: -Zextra-const-ub-checks #[repr(packed)] pub struct Foo { |
