From: Eduard-Mihai Burtescu Date: Sun, 14 Aug 2016 17:29:48 +0000 (+0300) Subject: Rollup merge of #35444 - alexcrichton:optimize-catch-unwind, r=brson X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=41e0f2d5e3422c57e94457228bf4943ddbd26ce4;p=rust.git Rollup merge of #35444 - alexcrichton:optimize-catch-unwind, r=brson std: Optimize panic::catch_unwind slightly The previous implementation of this function was overly conservative with liberal usage of `Option` and `.unwrap()` which in theory never triggers. This commit essentially removes the `Option`s in favor of unsafe implementations, improving the code generation of the fast path for LLVM to see through what's happening more clearly. cc #34727 --- 41e0f2d5e3422c57e94457228bf4943ddbd26ce4