File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
// ignore-tidy-linelength
2
2
//@ build-fail
3
- //@ dont-require-annotations: ERROR
4
3
//@ dont-check-compiler-stderr
5
4
//@ aux-build:panic-runtime-unwind.rs
6
5
//@ aux-build:panic-runtime-unwind2.rs
7
6
//@ aux-build:panic-runtime-lang-items.rs
8
7
8
+ // NOTE: there can be additional errors regarding trying to mix this crate if the precompiled target
9
+ // (such as `wasm32-unknown-unknown` currently unconditionally defaulting to panic=abort) panic
10
+ // strategy differs to abort, then involving a potentially-unwinding `panic_runtime_unwind` that
11
+ // uses a different panic strategy. These errors are important but not to the test intention, which
12
+ // is to check that trying to bring two panic runtimes (`panic_runtime_unwind`) and
13
+ // (`panic_runtime_unwind2`) is prohibited. As such, the additional errors are not checked in this
14
+ // test.
15
+ //@ dont-require-annotations: ERROR
16
+
9
17
#![ no_std]
10
18
#![ no_main]
11
19
@@ -16,7 +24,3 @@ extern crate panic_runtime_lang_items;
16
24
fn main ( ) { }
17
25
18
26
//~? 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`
You can’t perform that action at this time.
0 commit comments