include more universe information in debug!
printouts
This commit is contained in:
parent
378741b703
commit
a49c9fb8c3
@ -96,10 +96,15 @@ pub fn replace_bound_vars_with_placeholders<T>(
|
||||
let (result, map) = self.tcx.replace_bound_vars(binder, fld_r, fld_t);
|
||||
|
||||
debug!(
|
||||
"replace_bound_vars_with_placeholders(binder={:?}, result={:?}, map={:?})",
|
||||
"replace_bound_vars_with_placeholders(\
|
||||
next_universe={:?}, \
|
||||
binder={:?}, \
|
||||
result={:?}, \
|
||||
map={:?})",
|
||||
next_universe,
|
||||
binder,
|
||||
result,
|
||||
map
|
||||
map,
|
||||
);
|
||||
|
||||
(result, map)
|
||||
|
@ -514,8 +514,8 @@ pub fn new_region_var(
|
||||
self.undo_log.push(AddVar(vid));
|
||||
}
|
||||
debug!(
|
||||
"created new region variable {:?} with origin {:?}",
|
||||
vid, origin
|
||||
"created new region variable {:?} in {:?} with origin {:?}",
|
||||
vid, universe, origin
|
||||
);
|
||||
return vid;
|
||||
}
|
||||
@ -671,6 +671,7 @@ pub fn make_eqregion(
|
||||
self.make_subregion(origin, sup, sub);
|
||||
|
||||
if let (ty::ReVar(sub), ty::ReVar(sup)) = (*sub, *sup) {
|
||||
debug!("make_eqregion: uniying {:?} with {:?}", sub, sup);
|
||||
self.unification_table.union(sub, sup);
|
||||
self.any_unifications = true;
|
||||
}
|
||||
|
@ -188,7 +188,13 @@ pub fn new_var(&mut self,
|
||||
});
|
||||
assert_eq!(eq_key.vid.index, index as u32);
|
||||
|
||||
debug!("new_var(index={:?}, diverging={:?}, origin={:?}", eq_key.vid, diverging, origin);
|
||||
debug!(
|
||||
"new_var(index={:?}, universe={:?}, diverging={:?}, origin={:?}",
|
||||
eq_key.vid,
|
||||
universe,
|
||||
diverging,
|
||||
origin,
|
||||
);
|
||||
|
||||
eq_key.vid
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user