File tree 1 file changed +2
-3
lines changed
compiler/rustc_expand/src/mbe 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ fn parse_tt_inner<'root, 'tt>(
491
491
sess : & ParseSess ,
492
492
ms : & [ TokenTree ] ,
493
493
cur_items : & mut SmallVec < [ MatcherPosHandle < ' root , ' tt > ; 1 ] > ,
494
- next_items : & mut Vec < MatcherPosHandle < ' root , ' tt > > ,
494
+ next_items : & mut SmallVec < [ MatcherPosHandle < ' root , ' tt > ; 1 ] > ,
495
495
bb_items : & mut SmallVec < [ MatcherPosHandle < ' root , ' tt > ; 1 ] > ,
496
496
token : & Token ,
497
497
) -> Option < NamedParseResult > {
@@ -708,10 +708,9 @@ pub(super) fn parse_tt(
708
708
// there are frequently *no* others! -- are allocated on the heap.
709
709
let mut initial = MatcherPos :: new ( ms) ;
710
710
let mut cur_items = smallvec ! [ MatcherPosHandle :: Ref ( & mut initial) ] ;
711
- let mut next_items = Vec :: new ( ) ;
712
711
713
712
loop {
714
- assert ! ( next_items. is_empty ( ) ) ;
713
+ let mut next_items = SmallVec :: new ( ) ;
715
714
716
715
// Matcher positions black-box parsed by parser.rs (`parser`)
717
716
let mut bb_items = SmallVec :: new ( ) ;
You can’t perform that action at this time.
0 commit comments