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/loops | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/loops')
| -rw-r--r-- | tests/ui/loops/dont-suggest-break-thru-item.rs | 2 | ||||
| -rw-r--r-- | tests/ui/loops/for-each-loop-panic.rs | 6 | ||||
| -rw-r--r-- | tests/ui/loops/issue-69225-SCEVAddExpr-wrap-flag.rs | 10 | ||||
| -rw-r--r-- | tests/ui/loops/issue-69225-layout-repeated-checked-add.rs | 10 | ||||
| -rw-r--r-- | tests/ui/loops/loop-break-unsize.rs | 2 |
5 files changed, 15 insertions, 15 deletions
diff --git a/tests/ui/loops/dont-suggest-break-thru-item.rs b/tests/ui/loops/dont-suggest-break-thru-item.rs index 308101115e5..34a9a57bfed 100644 --- a/tests/ui/loops/dont-suggest-break-thru-item.rs +++ b/tests/ui/loops/dont-suggest-break-thru-item.rs @@ -1,4 +1,4 @@ -// edition:2021 +//@ edition:2021 #![feature(inline_const)] diff --git a/tests/ui/loops/for-each-loop-panic.rs b/tests/ui/loops/for-each-loop-panic.rs index 5156999f4db..04784cac8f2 100644 --- a/tests/ui/loops/for-each-loop-panic.rs +++ b/tests/ui/loops/for-each-loop-panic.rs @@ -1,6 +1,6 @@ -// run-fail -// error-pattern:moop -// ignore-emscripten no processes +//@ run-fail +//@ error-pattern:moop +//@ ignore-emscripten no processes fn main() { for _ in 0_usize..10_usize { diff --git a/tests/ui/loops/issue-69225-SCEVAddExpr-wrap-flag.rs b/tests/ui/loops/issue-69225-SCEVAddExpr-wrap-flag.rs index 6e030f1cc48..881c9e88c46 100644 --- a/tests/ui/loops/issue-69225-SCEVAddExpr-wrap-flag.rs +++ b/tests/ui/loops/issue-69225-SCEVAddExpr-wrap-flag.rs @@ -1,8 +1,8 @@ -// run-fail -// compile-flags: -C opt-level=3 -// error-pattern: index out of bounds: the len is 0 but the index is 16777216 -// ignore-wasm no panic or subprocess support -// ignore-emscripten no panic or subprocess support +//@ run-fail +//@ compile-flags: -C opt-level=3 +//@ error-pattern: index out of bounds: the len is 0 but the index is 16777216 +//@ ignore-wasm no panic or subprocess support +//@ ignore-emscripten no panic or subprocess support fn do_test(x: usize) { let mut arr = vec![vec![0u8; 3]]; diff --git a/tests/ui/loops/issue-69225-layout-repeated-checked-add.rs b/tests/ui/loops/issue-69225-layout-repeated-checked-add.rs index 7f43e4d1a51..9a85d1b01eb 100644 --- a/tests/ui/loops/issue-69225-layout-repeated-checked-add.rs +++ b/tests/ui/loops/issue-69225-layout-repeated-checked-add.rs @@ -1,11 +1,11 @@ // Ensure we appropriately error instead of overflowing a calculation when creating a new Alloc // Layout -// run-fail -// compile-flags: -C opt-level=3 -// error-pattern: index out of bounds: the len is 0 but the index is 16777216 -// ignore-wasm no panic or subprocess support -// ignore-emscripten no panic or subprocess support +//@ run-fail +//@ compile-flags: -C opt-level=3 +//@ error-pattern: index out of bounds: the len is 0 but the index is 16777216 +//@ ignore-wasm no panic or subprocess support +//@ ignore-emscripten no panic or subprocess support fn do_test(x: usize) { let arr = vec![vec![0u8; 3]]; diff --git a/tests/ui/loops/loop-break-unsize.rs b/tests/ui/loops/loop-break-unsize.rs index 974c63cea85..634acab8d47 100644 --- a/tests/ui/loops/loop-break-unsize.rs +++ b/tests/ui/loops/loop-break-unsize.rs @@ -1,5 +1,5 @@ // Regression test for #62312 -// check-pass +//@ check-pass fn main() { let _ = loop { |
