]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #62748 - luca-barbieri:optimize-refcell-borrow, r=RalfJung
authorbors <bors@rust-lang.org>
Sat, 27 Jul 2019 09:32:44 +0000 (09:32 +0000)
committerbors <bors@rust-lang.org>
Sat, 27 Jul 2019 09:32:44 +0000 (09:32 +0000)
commit0e9b465d729d07101b29b4d096d83edf9be82df0
tree210c15e12ca6b9f32a5f75ab901cccc4d8c191b8
parent09e39897587dca70f0b15093d425a682c392349c
parent44c165074b1b034799c6e1b95a871cde46755632
Auto merge of #62748 - luca-barbieri:optimize-refcell-borrow, r=RalfJung

Optimize RefCell read borrowing

Instead of doing two comparisons we can do only one with a bit of cleverness.

LLVM currently can't do this optimization itself on x86-64.
src/libcore/cell.rs