about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-08-14 20:29:48 +0300
committerGitHub <noreply@github.com>2016-08-14 20:29:48 +0300
commit41e0f2d5e3422c57e94457228bf4943ddbd26ce4 (patch)
treeb9784ffe226c4d64a0fc200ba3fe438d1c3bc62a /src/libsyntax/parse/parser.rs
parentfa57f358a326af04eb354fb37c9afd38e8bb87bd (diff)
parent045c8c86244aa69843c7f55ec91f2330a3aaec4e (diff)
downloadrust-41e0f2d5e3422c57e94457228bf4943ddbd26ce4.tar.gz
rust-41e0f2d5e3422c57e94457228bf4943ddbd26ce4.zip
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
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions