diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-04-20 12:22:42 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-04-20 12:28:26 +1000 |
| commit | b09522a634f5c6c53dd01ad60a37b6503355ce88 (patch) | |
| tree | 7b793a4141b79ce978966e7903e34aed7f91c29a /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 3cd5e346170437f844d18c17d3f870dc4722c96a (diff) | |
| download | rust-b09522a634f5c6c53dd01ad60a37b6503355ce88.tar.gz rust-b09522a634f5c6c53dd01ad60a37b6503355ce88.zip | |
Remove the loop from `Parser::bump()`.
The loop is there to handle a `NoDelim` open/close token. This commit changes `TokenCursor::inlined_next` so it never returns such a token. This is a performance win because the conditional test in `bump()` is removed. If the parser needs changing in the future to handle `NoDelim` tokens, then `inlined_next()` can easily be changed to return them.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
