File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
tests/ui/extern-flag/auxiliary Expand file tree Collapse file tree 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 ) ]
22#![ no_std]
33
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;
128
139#[ panic_handler]
1410pub fn begin_panic_handler ( _info : & core:: panic:: PanicInfo < ' _ > ) -> ! {
You can’t perform that action at this time.
0 commit comments