diff options
| author | Richo Healey <richo@psych0tik.net> | 2015-01-27 22:24:17 -0800 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2015-01-29 21:32:01 -0800 |
| commit | d2ab7d3ea8ff80089c9f5d8a3db37de0000eb246 (patch) | |
| tree | a7e988fffe0ba8f3d80a369c129c444ff9f40aaf /src/libstd | |
| parent | 44ff72195e0a5a3b0bfd4b8b3cef919cfa9661ef (diff) | |
| download | rust-d2ab7d3ea8ff80089c9f5d8a3db37de0000eb246.tar.gz rust-d2ab7d3ea8ff80089c9f5d8a3db37de0000eb246.zip | |
rt: allow unexported functions
rust_panic is unexported, however the metadata exported will usually include it for attaching breakpoints.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/rt/unwind.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs index 18298f1c7f4..dd4d3bbc5fc 100644 --- a/src/libstd/rt/unwind.rs +++ b/src/libstd/rt/unwind.rs @@ -160,6 +160,7 @@ pub fn panicking() -> bool { // An uninlined, unmangled function upon which to slap yer breakpoints #[inline(never)] #[no_mangle] +#[allow(private_no_mangle_fns)] fn rust_panic(cause: Box<Any + Send>) -> ! { rtdebug!("begin_unwind()"); @@ -237,6 +238,7 @@ pub mod eabi { #[lang="eh_personality"] #[no_mangle] // referenced from rust_try.ll + #[allow(private_no_mangle_fns)] extern fn rust_eh_personality( version: c_int, actions: uw::_Unwind_Action, @@ -252,6 +254,7 @@ pub mod eabi { } #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality_catch( _version: c_int, actions: uw::_Unwind_Action, @@ -290,6 +293,7 @@ pub mod eabi { #[lang="eh_personality"] #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality( version: c_int, actions: uw::_Unwind_Action, @@ -305,6 +309,7 @@ pub mod eabi { } #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality_catch( _version: c_int, actions: uw::_Unwind_Action, @@ -343,6 +348,7 @@ pub mod eabi { #[lang="eh_personality"] #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] extern "C" fn rust_eh_personality( state: uw::_Unwind_State, ue_header: *mut uw::_Unwind_Exception, @@ -355,6 +361,7 @@ pub mod eabi { } #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality_catch( state: uw::_Unwind_State, _ue_header: *mut uw::_Unwind_Exception, @@ -432,6 +439,7 @@ pub mod eabi { #[lang="eh_personality"] #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] extern "C" fn rust_eh_personality( exceptionRecord: *mut EXCEPTION_RECORD, establisherFrame: *mut c_void, @@ -446,6 +454,7 @@ pub mod eabi { } #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality_catch( exceptionRecord: *mut EXCEPTION_RECORD, establisherFrame: *mut c_void, |
