File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11// Error, the linked empty library is `no_std` and doesn't provide a panic handler.
22
3- //@ dont-require-annotations: ERROR
43//@ dont-check-compiler-stderr
4+
5+ // NOTE: fix a panic strategy to prevent differing errors subject to target's default panic strategy
6+ // which changes between targets. The specific panic strategy doesn't matter for test intention.
7+ //@ compile-flags: -Cpanic=abort
8+
59//@ aux-build: cfg_false_lib_no_std_before.rs
610
711#![ no_std]
@@ -11,6 +15,3 @@ extern crate cfg_false_lib_no_std_before as _;
1115fn main ( ) { }
1216
1317//~? ERROR `#[panic_handler]` function required, but not found
14- // FIXME: This error is target-dependent, could be served by some "optional error" annotation
15- // instead of `dont-require-annotations`.
16- //FIXME~? ERROR unwinding panics are not supported without std
You can’t perform that action at this time.
0 commit comments