]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #51653 - mglagla:option-unreachable, r=dtolnay
authorbors <bors@rust-lang.org>
Sat, 23 Jun 2018 20:10:35 +0000 (20:10 +0000)
committerbors <bors@rust-lang.org>
Sat, 23 Jun 2018 20:10:35 +0000 (20:10 +0000)
Option::get_or_insert(_with): Replace unreachable! with unreachable_unchecked

Optimize codegen for both functions as the None branch is trivially not reachable.


Trivial merge