File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
compiler/rustc_builtin_macros/src Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 11use rustc_ast:: token:: { Delimiter , Lit , LitKind , TokenKind } ;
2- use rustc_ast:: tokenstream:: { DelimSpan , TokenStream , TokenTree } ;
2+ use rustc_ast:: tokenstream:: { TokenStream , TokenTree } ;
33use rustc_ast:: * ;
44use rustc_expand:: base:: * ;
55use rustc_span:: edition:: Edition ;
@@ -117,24 +117,22 @@ fn expand<'cx>(
117117 }
118118
119119 ExpandResult :: Ready ( MacEager :: expr (
120- cx. expr (
120+ cx. expr_macro_call (
121121 sp,
122- ExprKind :: MacCall ( Box :: new ( MacCall {
123- path : Path {
122+ cx. macro_call (
123+ sp,
124+ Path {
124125 span : sp,
125126 segments : cx
126127 . std_path ( & [ sym:: panic, mac. symbol ( ) ] )
127128 . into_iter ( )
128- . map ( |ident| PathSegment :: from_ident ( ident ) )
129+ . map ( PathSegment :: from_ident)
129130 . collect ( ) ,
130131 tokens : None ,
131132 } ,
132- args : Box :: new ( DelimArgs {
133- dspan : DelimSpan :: from_single ( sp) ,
134- delim : Delimiter :: Parenthesis ,
135- tokens : tts,
136- } ) ,
137- } ) ) ,
133+ Delimiter :: Parenthesis ,
134+ tts,
135+ ) ,
138136 ) ,
139137 ) )
140138}
You can’t perform that action at this time.
0 commit comments