@@ -13,7 +13,7 @@ use std::collections::HashMap;
13
13
use std:: panic:: { catch_unwind, AssertUnwindSafe } ;
14
14
15
15
use rustc_ast:: token:: { BinOpToken , DelimToken , Token , TokenKind } ;
16
- use rustc_ast:: tokenstream:: { Cursor , LazyTokenStream , TokenStream , TokenTree } ;
16
+ use rustc_ast:: tokenstream:: { Cursor , Spacing , TokenStream , TokenTree } ;
17
17
use rustc_ast:: { ast, ptr} ;
18
18
use rustc_ast_pretty:: pprust;
19
19
use rustc_parse:: parser:: { ForceCollect , Parser } ;
@@ -1212,7 +1212,7 @@ pub(crate) fn convert_try_mac(
1212
1212
kind : ast:: ExprKind :: Try ( parser. parse_expr ( ) . ok ( ) ?) ,
1213
1213
span : mac. span ( ) , // incorrect span, but shouldn't matter too much
1214
1214
attrs : ast:: AttrVec :: new ( ) ,
1215
- tokens : Some ( LazyTokenStream :: new ( ts ) ) ,
1215
+ tokens : None ,
1216
1216
} )
1217
1217
} else {
1218
1218
None
@@ -1259,7 +1259,7 @@ impl MacroParser {
1259
1259
TokenTree :: Token ( ..) => return None ,
1260
1260
TokenTree :: Delimited ( delimited_span, d, _) => ( delimited_span. open . lo ( ) , d) ,
1261
1261
} ;
1262
- let args = tok . joint ( ) ;
1262
+ let args = TokenStream :: new ( vec ! [ ( tok , Spacing :: Joint ) ] ) ;
1263
1263
match self . toks . next ( ) ? {
1264
1264
TokenTree :: Token ( Token {
1265
1265
kind : TokenKind :: FatArrow ,
0 commit comments