Skip to content

Commit bd0111f

Browse files
committed
tests: build two-panic-runtimes.rs with -Cpanic=unwind
1 parent 4031985 commit bd0111f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// ignore-tidy-linelength
22
//@ build-fail
3-
//@ dont-require-annotations: ERROR
43
//@ dont-check-compiler-stderr
54
//@ aux-build:panic-runtime-unwind.rs
65
//@ aux-build:panic-runtime-unwind2.rs
76
//@ aux-build:panic-runtime-lang-items.rs
7+
//@ compile-flags: -Cpanic=unwind
88

99
#![no_std]
1010
#![no_main]
@@ -16,7 +16,3 @@ extern crate panic_runtime_lang_items;
1616
fn main() {}
1717

1818
//~? ERROR cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_unwind2
19-
// FIXME: These errors are target-dependent, could be served by some "optional error" annotation
20-
// instead of `dont-require-annotations`.
21-
//FIXME~? ERROR the linked panic runtime `panic_runtime_unwind2` is not compiled with this crate's panic strategy `abort`
22-
//FIXME~? ERROR the crate `panic_runtime_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`

0 commit comments

Comments
 (0)