File tree 1 file changed +2
-2
lines changed 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> {
1548
1548
// This can happen due to a bad interaction of two unrelated recovery mechanisms with
1549
1549
// mismatched delimiters *and* recovery lookahead on the likely typo `pub ident(`
1550
1550
// (#62881).
1551
- return Ok ( ( ret?, TokenStream :: new ( vec ! [ ] ) ) ) ;
1551
+ return Ok ( ( ret?, TokenStream :: default ( ) ) ) ;
1552
1552
} else {
1553
1553
& mut self . token_cursor . stack [ prev] . last_token
1554
1554
} ;
@@ -1563,7 +1563,7 @@ impl<'a> Parser<'a> {
1563
1563
// This can happen due to a bad interaction of two unrelated recovery mechanisms
1564
1564
// with mismatched delimiters *and* recovery lookahead on the likely typo
1565
1565
// `pub ident(` (#62895, different but similar to the case above).
1566
- return Ok ( ( ret?, TokenStream :: new ( vec ! [ ] ) ) ) ;
1566
+ return Ok ( ( ret?, TokenStream :: default ( ) ) ) ;
1567
1567
}
1568
1568
} ;
1569
1569
You can’t perform that action at this time.
0 commit comments