Closed
Description
The following function is incorrect:
rust/compiler/rustc_ast/src/tokenstream.rs
Lines 698 to 707 in 038d599
Zipped iterators with uneven lengths will still consume an item from both sides of the zip on their final iteration (where one will return None
and one will return Some
). This allows for both iterators to be exhausted even though their lengths are unequal.