File tree 1 file changed +5
-9
lines changed
tests/ui/extern-flag/auxiliary
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
- #![ feature( lang_items) ]
1
+ #![ feature( lang_items, panic_unwind ) ]
2
2
#![ no_std]
3
3
4
- // Since `rustc` generally passes `-nodefaultlibs` to the linker,
5
- // Rust programs link necessary system libraries via `#[link()]`
6
- // attributes in the `libc` crate. `libc` is a dependency of `std`,
7
- // but as we are `#![no_std]`, we need to include it manually.
8
- // Except on windows-msvc.
9
- #![ feature( rustc_private) ]
10
- #[ cfg( not( all( windows, target_env = "msvc" ) ) ) ]
11
- extern crate libc;
4
+ // Since the `unwind` crate is a dependency of the `std` crate, and we have
5
+ // `#![no_std]`, the unwinder is not included in the link command by default.
6
+ // We need to include crate `unwind` manually.
7
+ extern crate unwind;
12
8
13
9
#[ panic_handler]
14
10
pub fn begin_panic_handler ( _info : & core:: panic:: PanicInfo < ' _ > ) -> ! {
You can’t perform that action at this time.
0 commit comments