@@ -1392,7 +1392,7 @@ pub struct Resolver<'ra, 'tcx> {
13921392 extern_macro_map : CacheRefCell < FxHashMap < DefId , & ' ra MacroData > > ,
13931393 dummy_ext_bang : Arc < SyntaxExtension > ,
13941394 dummy_ext_derive : Arc < SyntaxExtension > ,
1395- non_macro_attr : & ' ra MacroData ,
1395+ non_macro_attr : Arc < SyntaxExtension > ,
13961396 local_macro_def_scopes : FxHashMap < LocalDefId , LocalModule < ' ra > > = default:: fx_hash_map ( ) ,
13971397 ast_transform_scopes : FxHashMap < LocalExpnId , LocalModule < ' ra > > = default:: fx_hash_map ( ) ,
13981398 unused_macros : FxIndexMap < LocalDefId , ( NodeId , Ident ) > ,
@@ -1812,8 +1812,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
18121812 extern_macro_map : Default :: default ( ) ,
18131813 dummy_ext_bang : Arc :: new ( SyntaxExtension :: dummy_bang ( edition) ) ,
18141814 dummy_ext_derive : Arc :: new ( SyntaxExtension :: dummy_derive ( edition) ) ,
1815- non_macro_attr : arenas
1816- . alloc_macro ( MacroData :: new ( Arc :: new ( SyntaxExtension :: non_macro_attr ( edition) ) ) ) ,
1815+ non_macro_attr : Arc :: new ( SyntaxExtension :: non_macro_attr ( edition) ) ,
18171816 unused_macros : Default :: default ( ) ,
18181817 unused_macro_rules : Default :: default ( ) ,
18191818 single_segment_macro_resolutions : Default :: default ( ) ,
@@ -1984,7 +1983,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
19841983 match macro_kind {
19851984 MacroKind :: Bang => Arc :: clone ( & self . dummy_ext_bang ) ,
19861985 MacroKind :: Derive => Arc :: clone ( & self . dummy_ext_derive ) ,
1987- MacroKind :: Attr => Arc :: clone ( & self . non_macro_attr . ext ) ,
1986+ MacroKind :: Attr => Arc :: clone ( & self . non_macro_attr ) ,
19881987 }
19891988 }
19901989
@@ -2013,11 +2012,11 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
20132012 }
20142013
20152014 fn is_builtin_macro ( & self , res : Res ) -> bool {
2016- self . get_macro ( res) . is_some_and ( |macro_data| macro_data . ext . builtin_name . is_some ( ) )
2015+ self . get_macro ( res) . is_some_and ( |ext| ext. builtin_name . is_some ( ) )
20172016 }
20182017
20192018 fn is_specific_builtin_macro ( & self , res : Res , symbol : Symbol ) -> bool {
2020- self . get_macro ( res) . is_some_and ( |macro_data| macro_data . ext . builtin_name == Some ( symbol) )
2019+ self . get_macro ( res) . is_some_and ( |ext| ext. builtin_name == Some ( symbol) )
20212020 }
20222021
20232022 fn macro_def ( & self , mut ctxt : SyntaxContext ) -> DefId {
0 commit comments