Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ea68758

Browse files
committed
Add needs-unwind to tests that depend on panicking
This directive isn't automatically set by compiletest or x.py, but can be turned on manually for targets that require it.
1 parent 0b42dea commit ea68758

File tree

62 files changed

+63
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+63
-2
lines changed

src/test/ui/array-slice-vec/box-of-array-of-drop-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23
#![allow(overflowing_literals)]
34

45
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a

src/test/ui/array-slice-vec/box-of-array-of-drop-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23
#![allow(overflowing_literals)]
34

45
// Test that we cleanup dynamic sized Box<[D]> properly when D has a

src/test/ui/array-slice-vec/nested-vec-3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23
#![allow(overflowing_literals)]
34

45
// ignore-emscripten no threads support

src/test/ui/array-slice-vec/slice-panic-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23

34
// ignore-emscripten no threads support
45

src/test/ui/array-slice-vec/slice-panic-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23

34
// ignore-emscripten no threads support
45

src/test/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-panic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// be talking about `async fn`s instead. Should also test what happens when it panics.
33

44
// run-fail
5+
// needs-unwind
56
// error-pattern: thread 'main' panicked at '`async fn` resumed after panicking'
67
// edition:2018
78
// ignore-wasm no panic or subprocess support

src/test/ui/binding/fn-arg-incomplete-pattern-drop-order.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23
// Check that partially moved from function parameters are dropped after the
34
// named bindings that move from them.
45

src/test/ui/builtin-clone-unwind.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23

34
#![allow(unused_variables)]
45
#![allow(unused_imports)]

src/test/ui/catch-unwind-bang.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23
// ignore-wasm32-bare compiled with panic=abort by default
34

45
fn worker() -> ! {

src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23

34
#![allow(unused_must_use)]
45
#![allow(dead_code)]

0 commit comments

Comments
 (0)