File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ pub enum DepNode {
65
65
TransLinkMeta ,
66
66
TransCrateItem ( DefId ) ,
67
67
TransInlinedItem ( DefId ) ,
68
+ TransWriteMetadata ,
68
69
69
70
// Nodes representing bits of computed IR in the tcx. Each of
70
71
// these corresponds to a particular table in the tcx.
Original file line number Diff line number Diff line change @@ -3060,8 +3060,9 @@ pub fn trans_crate<'tcx>(tcx: &ty::ctxt<'tcx>,
3060
3060
let reachable_symbol_ids = filter_reachable_ids ( & shared_ccx) ;
3061
3061
3062
3062
// Translate the metadata.
3063
- let metadata = tcx. dep_graph . with_ignore ( || {
3064
- write_metadata ( & shared_ccx, krate, & reachable_symbol_ids, mir_map) ;
3063
+ let metadata = tcx. dep_graph . with_task ( DepNode :: TransWriteMetadata , || {
3064
+ let krate = tcx. map . krate ( ) ;
3065
+ write_metadata ( & shared_ccx, krate, & reachable_symbol_ids, mir_map)
3065
3066
} ) ;
3066
3067
3067
3068
if shared_ccx. sess ( ) . trans_stats ( ) {
You can’t perform that action at this time.
0 commit comments