Use TokenStream::default()
in more places.
This commit is contained in:
parent
5c93492da9
commit
1ce0347fd4
1 changed files with 2 additions and 2 deletions
|
@ -1548,7 +1548,7 @@ impl<'a> Parser<'a> {
|
|||
// This can happen due to a bad interaction of two unrelated recovery mechanisms with
|
||||
// mismatched delimiters *and* recovery lookahead on the likely typo `pub ident(`
|
||||
// (#62881).
|
||||
return Ok((ret?, TokenStream::new(vec![])));
|
||||
return Ok((ret?, TokenStream::default()));
|
||||
} else {
|
||||
&mut self.token_cursor.stack[prev].last_token
|
||||
};
|
||||
|
@ -1563,7 +1563,7 @@ impl<'a> Parser<'a> {
|
|||
// This can happen due to a bad interaction of two unrelated recovery mechanisms
|
||||
// with mismatched delimiters *and* recovery lookahead on the likely typo
|
||||
// `pub ident(` (#62895, different but similar to the case above).
|
||||
return Ok((ret?, TokenStream::new(vec![])));
|
||||
return Ok((ret?, TokenStream::default()));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue