diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-17 00:12:24 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-18 17:28:49 +1000 |
| commit | 487802d6c8a74ee375d2f71e3ff97cea11cc9c18 (patch) | |
| tree | 88b17695f452c3d186a87fca4682b4f44808261a /compiler/rustc_pattern_analysis/src | |
| parent | 4bb2f278617e5498ac9a4776d3e1268154c500c5 (diff) | |
| download | rust-487802d6c8a74ee375d2f71e3ff97cea11cc9c18.tar.gz rust-487802d6c8a74ee375d2f71e3ff97cea11cc9c18.zip | |
Remove `TrailingToken`.
It's used in `Parser::collect_tokens_trailing_token` to decide whether to capture a trailing token. But the callers actually know whether to capture a trailing token, so it's simpler for them to just pass in a bool. Also, the `TrailingToken::Gt` case was weird, because it didn't result in a trailing token being captured. It could have been subsumed by the `TrailingToken::MaybeComma` case, and it effectively is in the new code.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
