diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-12-11 14:58:19 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-12-18 10:43:28 +1100 |
| commit | c82d5865f2f556464a14951686897989223a8d0a (patch) | |
| tree | fce8c89e167ae7c0153891671d7586fe15467a90 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 809975c94aa8dd69775a0caff819ebb0c81d1966 (diff) | |
| download | rust-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/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
