@@ -103,6 +103,7 @@ struct LoweringContext<'a, 'hir: 'a> {
103
103
impl_items : BTreeMap < hir:: ImplItemId , hir:: ImplItem < ' hir > > ,
104
104
bodies : BTreeMap < hir:: BodyId , hir:: Body < ' hir > > ,
105
105
exported_macros : Vec < hir:: MacroDef < ' hir > > ,
106
+ non_exported_macros : Vec < hir:: MacroDef < ' hir > > ,
106
107
non_exported_macro_attrs : Vec < ast:: Attribute > ,
107
108
108
109
trait_impls : BTreeMap < DefId , Vec < hir:: HirId > > ,
@@ -302,6 +303,7 @@ pub fn lower_crate<'a, 'hir>(
302
303
trait_impls : BTreeMap :: new ( ) ,
303
304
modules : BTreeMap :: new ( ) ,
304
305
exported_macros : Vec :: new ( ) ,
306
+ non_exported_macros : Vec :: new ( ) ,
305
307
non_exported_macro_attrs : Vec :: new ( ) ,
306
308
catch_scopes : Vec :: new ( ) ,
307
309
loop_scopes : Vec :: new ( ) ,
@@ -582,6 +584,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
582
584
hir:: Crate {
583
585
item : hir:: CrateItem { module, attrs, span : c. span } ,
584
586
exported_macros : self . arena . alloc_from_iter ( self . exported_macros ) ,
587
+ non_exported_macros : self . arena . alloc_from_iter ( self . non_exported_macros ) ,
585
588
non_exported_macro_attrs : self . arena . alloc_from_iter ( self . non_exported_macro_attrs ) ,
586
589
items : self . items ,
587
590
trait_items : self . trait_items ,
0 commit comments