improved debug output
This commit is contained in:
parent
88cd36714c
commit
2a58875fa2
3 changed files with 11 additions and 3 deletions
|
|
@ -112,7 +112,7 @@ impl<'a, 'gcx, 'tcx> FulfillmentContext<'tcx> {
|
|||
selcx,
|
||||
register_region_obligations: self.register_region_obligations
|
||||
});
|
||||
debug!("select: outcome={:?}", outcome);
|
||||
debug!("select: outcome={:#?}", outcome);
|
||||
|
||||
// FIXME: if we kept the original cache key, we could mark projection
|
||||
// obligations as complete for the projection cache here.
|
||||
|
|
|
|||
|
|
@ -196,7 +196,10 @@ pub fn poly_project_and_unify_type<'cx, 'gcx, 'tcx>(
|
|||
let span = obligation.cause.span;
|
||||
match infcx.leak_check(false, span, &skol_map, snapshot) {
|
||||
Ok(()) => Ok(infcx.plug_leaks(skol_map, snapshot, result)),
|
||||
Err(e) => Err(MismatchedProjectionTypes { err: e }),
|
||||
Err(e) => {
|
||||
debug!("poly_project_and_unify_type: leak check encountered error {:?}", e);
|
||||
Err(MismatchedProjectionTypes { err: e })
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
|
|
@ -243,7 +246,10 @@ fn project_and_unify_type<'cx, 'gcx, 'tcx>(
|
|||
obligations.extend(inferred_obligations);
|
||||
Ok(Some(obligations))
|
||||
},
|
||||
Err(err) => Err(MismatchedProjectionTypes { err: err }),
|
||||
Err(err) => {
|
||||
debug!("project_and_unify_type: equating types encountered error {:?}", err);
|
||||
Err(MismatchedProjectionTypes { err: err })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ crate fn normalize_ty_after_erasing_regions<'tcx>(
|
|||
tcx: TyCtxt<'_, 'tcx, 'tcx>,
|
||||
goal: ParamEnvAnd<'tcx, Ty<'tcx>>,
|
||||
) -> Ty<'tcx> {
|
||||
debug!("normalize_ty_after_erasing_regions(goal={:#?})", goal);
|
||||
|
||||
let ParamEnvAnd { param_env, value } = goal;
|
||||
tcx.sess.perf_stats.normalize_ty_after_erasing_regions.fetch_add(1, Ordering::Relaxed);
|
||||
tcx.infer_ctxt().enter(|infcx| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue