about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-20 16:24:27 +0000
committerbors <bors@rust-lang.org>2019-01-20 16:24:27 +0000
commit794e22862c9fed17cdb8d4f3d650851c667bc78e (patch)
tree785069e8a9a584f67dbb66c2fb34e3c64591dcd8 /src/libsyntax/parse/parser.rs
parent4db2394156b408e7af5c595bf3c9cbff8ba21157 (diff)
parentf0d3df39cbe1a3afaaabddbc5764b4057c713dd5 (diff)
downloadrust-794e22862c9fed17cdb8d4f3d650851c667bc78e.tar.gz
rust-794e22862c9fed17cdb8d4f3d650851c667bc78e.zip
Auto merge of #57697 - dotdash:fast_lex_reg_resol_item_bodies, r=nagisa
Use a faster early exit during region expansion

Turns out that the equality check for regions is rather expensive, and
the current early exit check works in such a way, that the comparison is
even done twice. As we only really care about the case of equal scopes,
we can perform a faster, more specialized check and move it up one
level, so we can eventually skip the additional full comparison as well.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions