File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ use std::collections::hash_map::Entry::{Vacant, Occupied};
105
105
#[ derive( Clone ) ]
106
106
enum TokenTreeOrTokenTreeVec {
107
107
Tt ( tokenstream:: TokenTree ) ,
108
- TtSeq ( Rc < Vec < tokenstream:: TokenTree > > ) ,
108
+ TtSeq ( Vec < tokenstream:: TokenTree > ) ,
109
109
}
110
110
111
111
impl TokenTreeOrTokenTreeVec {
@@ -162,7 +162,7 @@ pub fn count_names(ms: &[TokenTree]) -> usize {
162
162
} )
163
163
}
164
164
165
- pub fn initial_matcher_pos ( ms : Rc < Vec < TokenTree > > , sep : Option < Token > , lo : BytePos )
165
+ pub fn initial_matcher_pos ( ms : Vec < TokenTree > , sep : Option < Token > , lo : BytePos )
166
166
-> Box < MatcherPos > {
167
167
let match_idx_hi = count_names ( & ms[ ..] ) ;
168
168
let matches: Vec < _ > = ( 0 ..match_idx_hi) . map ( |_| Vec :: new ( ) ) . collect ( ) ;
@@ -285,7 +285,7 @@ pub fn parse(sess: &ParseSess,
285
285
mut rdr : TtReader ,
286
286
ms : & [ TokenTree ] )
287
287
-> NamedParseResult {
288
- let mut cur_eis = SmallVector :: one ( initial_matcher_pos ( Rc :: new ( ms. to_owned ( ) ) ,
288
+ let mut cur_eis = SmallVector :: one ( initial_matcher_pos ( ms. to_owned ( ) ,
289
289
None ,
290
290
rdr. peek ( ) . sp . lo ) ) ;
291
291
You can’t perform that action at this time.
0 commit comments