rust/src/libpanic_unwind
Alex Crichton 52805d233b std: Avoid panics in rust_eh_personality
This commit removes a few calls to panic and/or assert in `rust_eh_personality`.
This function definitely can't itself panic (that'd probably segfault or do
something else weird) and I was also noticing that a `pub extern fn foo() {}`
cdylib was abnormally large. Turns out all that size was the panicking machinery
brought in by the personality function!

The change here is to return a `Result` internally so we can bubble up the fatal
error, eventually translating to the appropriate error code for the libunwind
ABI.
2017-06-08 07:06:43 -07:00
..
dwarf std: Avoid panics in rust_eh_personality 2017-06-08 07:06:43 -07:00
Cargo.toml std: Don't build docs for misc facade crates 2016-12-30 10:00:33 -08:00
emcc.rs run rustfmt on libpanic_unwind 2016-10-18 23:09:47 +05:30
gcc.rs std: Avoid panics in rust_eh_personality 2017-06-08 07:06:43 -07:00
lib.rs Remove not(stage0) from deny(warnings) 2016-12-29 21:07:20 -08:00
seh.rs Issue deprecation warnings for safe accesses to extern statics 2016-09-09 01:07:01 +03:00
seh64_gnu.rs std: Avoid panics in rust_eh_personality 2017-06-08 07:06:43 -07:00
windows.rs Fix definitions of ULONG_PTR 2017-05-06 15:46:16 +01:00