about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-06-08 19:52:53 +0000
committerbors <bors@rust-lang.org>2017-06-08 19:52:53 +0000
commit148e9171481da43738d7d7a79c5e6f7bc2c2ccde (patch)
tree5063245ca748a049e3aa4d54c0940d157d0fae80 /src/test/run-pass/thinlto
parentae3d3878ef831247ebb8babcd5efa345fdbb17eb (diff)
parent52805d233b59503cdfe58ee21e894ed6bb3b1da9 (diff)
downloadrust-148e9171481da43738d7d7a79c5e6f7bc2c2ccde.tar.gz
rust-148e9171481da43738d7d7a79c5e6f7bc2c2ccde.zip
Auto merge of #42487 - alexcrichton:smaller-personality, r=vadimcn
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