diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 8d3b2bc47ec9dbcc6e9efbf8d7a39059b47dee01..b7265762208012bb6b32b5e5fffe95df5567b2f0 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -889,10 +889,11 @@ pub fn phase_2_configure_and_expand(sess: &Session, let dep_graph = match future_dep_graph { None => DepGraph::new_disabled(), Some(future) => { - let prev_graph = future - .open() - .expect("Could not join with background dep_graph thread") - .open(sess); + let prev_graph = time(time_passes, "blocked while dep-graph loading finishes", || { + future.open() + .expect("Could not join with background dep_graph thread") + .open(sess) + }); DepGraph::new(prev_graph) } };