incr.comp.: Fix some merge fallout.
This commit is contained in:
parent
dbab705f04
commit
c96d0bff94
@ -651,7 +651,7 @@ pub fn force_from_dep_node<'a, 'gcx, 'lcx>(tcx: TyCtxt<'a, 'gcx, 'lcx>,
|
||||
|
||||
profq_msg!(tcx,
|
||||
ProfileQueriesMsg::QueryBegin(
|
||||
span.clone(),
|
||||
span.data(),
|
||||
::ty::maps::QueryMsg::$query(profq_key!(tcx, $key))
|
||||
)
|
||||
);
|
||||
|
@ -33,6 +33,13 @@ pub fn dep_graph_tcx_init<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
|
||||
tcx.allocate_metadata_dep_nodes();
|
||||
tcx.precompute_in_scope_traits_hashes();
|
||||
|
||||
if tcx.sess.incr_comp_session_dir_opt().is_none() {
|
||||
// If we are only building with -Zquery-dep-graph but without an actual
|
||||
// incr. comp. session directory, we exit here. Otherwise we'd fail
|
||||
// when trying to load work products.
|
||||
return
|
||||
}
|
||||
|
||||
let work_products_path = work_products_path(tcx.sess);
|
||||
if let Some(work_products_data) = load_data(tcx.sess, &work_products_path) {
|
||||
// Decode the list of work_products
|
||||
|
@ -956,8 +956,6 @@ pub fn trans_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
||||
}
|
||||
}
|
||||
|
||||
assert!(codegen_units.len() <= 1 || !tcx.sess.lto());
|
||||
|
||||
let ongoing_translation = write::start_async_translation(
|
||||
tcx,
|
||||
time_graph.clone(),
|
||||
|
Loading…
Reference in New Issue
Block a user