@@ -1260,30 +1260,34 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
12601260 id : DefIndex ,
12611261 sess : & ' a Session ,
12621262 ) -> impl Iterator < Item = ModChild > + ' a {
1263- iter:: from_coroutine ( move || {
1264- if let Some ( data) = & self . root . proc_macro_data {
1265- // If we are loading as a proc macro, we want to return
1266- // the view of this crate as a proc macro crate.
1267- if id == CRATE_DEF_INDEX {
1268- for child_index in data. macros . decode ( self ) {
1263+ iter:: from_coroutine (
1264+ #[ cfg_attr( not( bootstrap) , coroutine) ]
1265+ move || {
1266+ if let Some ( data) = & self . root . proc_macro_data {
1267+ // If we are loading as a proc macro, we want to return
1268+ // the view of this crate as a proc macro crate.
1269+ if id == CRATE_DEF_INDEX {
1270+ for child_index in data. macros . decode ( self ) {
1271+ yield self . get_mod_child ( child_index, sess) ;
1272+ }
1273+ }
1274+ } else {
1275+ // Iterate over all children.
1276+ let non_reexports =
1277+ self . root . tables . module_children_non_reexports . get ( self , id) ;
1278+ for child_index in non_reexports. unwrap ( ) . decode ( self ) {
12691279 yield self . get_mod_child ( child_index, sess) ;
12701280 }
1271- }
1272- } else {
1273- // Iterate over all children.
1274- let non_reexports = self . root . tables . module_children_non_reexports . get ( self , id) ;
1275- for child_index in non_reexports. unwrap ( ) . decode ( self ) {
1276- yield self . get_mod_child ( child_index, sess) ;
1277- }
12781281
1279- let reexports = self . root . tables . module_children_reexports . get ( self , id) ;
1280- if !reexports. is_default ( ) {
1281- for reexport in reexports. decode ( ( self , sess) ) {
1282- yield reexport;
1282+ let reexports = self . root . tables . module_children_reexports . get ( self , id) ;
1283+ if !reexports. is_default ( ) {
1284+ for reexport in reexports. decode ( ( self , sess) ) {
1285+ yield reexport;
1286+ }
12831287 }
12841288 }
1285- }
1286- } )
1289+ } ,
1290+ )
12871291 }
12881292
12891293 fn is_ctfe_mir_available ( self , id : DefIndex ) -> bool {
0 commit comments