diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-06-06 11:34:10 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-06-08 07:06:43 -0700 |
| commit | 52805d233b59503cdfe58ee21e894ed6bb3b1da9 (patch) | |
| tree | 36df6e39ebdde78dc3001625f5d6a612d30e0fe1 /src/test/run-pass/thinlto | |
| parent | ae7920153331f26f2bc144f62082e95e74c2ba31 (diff) | |
| download | rust-52805d233b59503cdfe58ee21e894ed6bb3b1da9.tar.gz rust-52805d233b59503cdfe58ee21e894ed6bb3b1da9.zip | |
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.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
