about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-12-11 14:58:19 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-12-18 10:43:28 +1100
commitc82d5865f2f556464a14951686897989223a8d0a (patch)
treefce8c89e167ae7c0153891671d7586fe15467a90 /compiler/rustc_parse/src
parent809975c94aa8dd69775a0caff819ebb0c81d1966 (diff)
downloadrust-c82d5865f2f556464a14951686897989223a8d0a.tar.gz
rust-c82d5865f2f556464a14951686897989223a8d0a.zip
Remove `Peekable<TokenStreamIter>` uses.
Currently there are two ways to peek at a `TokenStreamIter`.
- Wrap it in a `Peekable` and use that traits `peek` method.
- Use `TokenStreamIter`'s inherent `peek` method.

Some code uses one, some use the other. This commit converts all places
to the inherent method. This eliminates mixing of `TokenStreamIter` and
`Peekable<TokenStreamIter>` and some use of `impl Iterator` and `dyn
Iterator`.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions