@@ -103,6 +103,7 @@ struct LoweringContext<'a, 'hir: 'a> {
103103 impl_items : BTreeMap < hir:: ImplItemId , hir:: ImplItem < ' hir > > ,
104104 bodies : BTreeMap < hir:: BodyId , hir:: Body < ' hir > > ,
105105 exported_macros : Vec < hir:: MacroDef < ' hir > > ,
106+ non_exported_macros : Vec < hir:: MacroDef < ' hir > > ,
106107 non_exported_macro_attrs : Vec < ast:: Attribute > ,
107108
108109 trait_impls : BTreeMap < DefId , Vec < hir:: HirId > > ,
@@ -302,6 +303,7 @@ pub fn lower_crate<'a, 'hir>(
302303 trait_impls : BTreeMap :: new ( ) ,
303304 modules : BTreeMap :: new ( ) ,
304305 exported_macros : Vec :: new ( ) ,
306+ non_exported_macros : Vec :: new ( ) ,
305307 non_exported_macro_attrs : Vec :: new ( ) ,
306308 catch_scopes : Vec :: new ( ) ,
307309 loop_scopes : Vec :: new ( ) ,
@@ -582,6 +584,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
582584 hir:: Crate {
583585 item : hir:: CrateItem { module, attrs, span : c. span } ,
584586 exported_macros : self . arena . alloc_from_iter ( self . exported_macros ) ,
587+ non_exported_macros : self . arena . alloc_from_iter ( self . non_exported_macros ) ,
585588 non_exported_macro_attrs : self . arena . alloc_from_iter ( self . non_exported_macro_attrs ) ,
586589 items : self . items ,
587590 trait_items : self . trait_items ,
0 commit comments