We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e42a12 + 42dbc72 commit da44234Copy full SHA for da44234
compiler/rustc_parse/src/parser/attr_wrapper.rs
@@ -106,7 +106,7 @@ impl ToAttrTokenStream for LazyAttrTokenStreamImpl {
106
let mut cursor_snapshot = self.cursor_snapshot.clone();
107
let tokens =
108
std::iter::once((FlatToken::Token(self.start_token.0.clone()), self.start_token.1))
109
- .chain((0..self.num_calls).map(|_| {
+ .chain(std::iter::repeat_with(|| {
110
let token = cursor_snapshot.next();
111
(FlatToken::Token(token.0), token.1)
112
}))
0 commit comments