@@ -741,10 +741,10 @@ pub fn compile_declarative_macro(
741
741
if let Some ( guar) = check_no_eof ( sess, & p, "expected right-hand side of macro rule" ) {
742
742
return dummy_syn_ext ( guar) ;
743
743
}
744
- let rhs_tt = p. parse_token_tree ( ) ;
745
- let rhs_tt = parse_one_tt ( rhs_tt , RulePart :: Body , sess, node_id, features, edition) ;
746
- check_emission ( check_rhs ( sess, & rhs_tt ) ) ;
747
- check_emission ( check_meta_variables ( & sess. psess , node_id, args. as_ref ( ) , & lhs_tt, & rhs_tt ) ) ;
744
+ let rhs = p. parse_token_tree ( ) ;
745
+ let rhs = parse_one_tt ( rhs , RulePart :: Body , sess, node_id, features, edition) ;
746
+ check_emission ( check_rhs ( sess, & rhs ) ) ;
747
+ check_emission ( check_meta_variables ( & sess. psess , node_id, args. as_ref ( ) , & lhs_tt, & rhs ) ) ;
748
748
let lhs_span = lhs_tt. span ( ) ;
749
749
// Convert the lhs into `MatcherLoc` form, which is better for doing the
750
750
// actual matching.
@@ -760,11 +760,11 @@ pub fn compile_declarative_macro(
760
760
} ;
761
761
let args = mbe:: macro_parser:: compute_locs ( & delimited. tts ) ;
762
762
let body_span = lhs_span;
763
- rules. push ( MacroRule :: Attr { args, args_span, body : lhs, body_span, rhs : rhs_tt } ) ;
763
+ rules. push ( MacroRule :: Attr { args, args_span, body : lhs, body_span, rhs } ) ;
764
764
} else if is_derive {
765
- rules. push ( MacroRule :: Derive { body : lhs, body_span : lhs_span, rhs : rhs_tt } ) ;
765
+ rules. push ( MacroRule :: Derive { body : lhs, body_span : lhs_span, rhs } ) ;
766
766
} else {
767
- rules. push ( MacroRule :: Func { lhs, lhs_span, rhs : rhs_tt } ) ;
767
+ rules. push ( MacroRule :: Func { lhs, lhs_span, rhs } ) ;
768
768
}
769
769
if p. token == token:: Eof {
770
770
break ;
0 commit comments