File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1548,7 +1548,7 @@ impl<'a> Parser<'a> {
15481548 // This can happen due to a bad interaction of two unrelated recovery mechanisms with
15491549 // mismatched delimiters *and* recovery lookahead on the likely typo `pub ident(`
15501550 // (#62881).
1551- return Ok ( ( ret?, TokenStream :: new ( vec ! [ ] ) ) ) ;
1551+ return Ok ( ( ret?, TokenStream :: default ( ) ) ) ;
15521552 } else {
15531553 & mut self . token_cursor . stack [ prev] . last_token
15541554 } ;
@@ -1563,7 +1563,7 @@ impl<'a> Parser<'a> {
15631563 // This can happen due to a bad interaction of two unrelated recovery mechanisms
15641564 // with mismatched delimiters *and* recovery lookahead on the likely typo
15651565 // `pub ident(` (#62895, different but similar to the case above).
1566- return Ok ( ( ret?, TokenStream :: new ( vec ! [ ] ) ) ) ;
1566+ return Ok ( ( ret?, TokenStream :: default ( ) ) ) ;
15671567 }
15681568 } ;
15691569
You can’t perform that action at this time.
0 commit comments