diff options
| author | bors <bors@rust-lang.org> | 2019-01-20 16:24:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-01-20 16:24:27 +0000 |
| commit | 794e22862c9fed17cdb8d4f3d650851c667bc78e (patch) | |
| tree | 785069e8a9a584f67dbb66c2fb34e3c64591dcd8 /src/libsyntax/parse | |
| parent | 4db2394156b408e7af5c595bf3c9cbff8ba21157 (diff) | |
| parent | f0d3df39cbe1a3afaaabddbc5764b4057c713dd5 (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
