tweak debug output some more
This commit is contained in:
parent
62b1e6532a
commit
948f77c71f
src/librustc_mir
@ -352,7 +352,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
|
||||
}
|
||||
|
||||
/// Returns access to the value of `r` for debugging purposes.
|
||||
pub(super) fn region_value_str(&self, r: RegionVid) -> String {
|
||||
crate fn region_value_str(&self, r: RegionVid) -> String {
|
||||
let inferred_values = self.inferred_values
|
||||
.as_ref()
|
||||
.expect("region values not yet inferred");
|
||||
|
@ -66,8 +66,13 @@ fn precompute_borrows_out_of_scope<'a, 'tcx>(
|
||||
let mut visited = FxHashSet();
|
||||
visited.insert(location);
|
||||
|
||||
debug!("borrow {:?} (region: {:?}) starts at {:?}",
|
||||
borrow_index, borrow_region, location);
|
||||
debug!(
|
||||
"borrow {:?} has region {:?} with value {:?}",
|
||||
borrow_index,
|
||||
borrow_region,
|
||||
regioncx.region_value_str(borrow_region),
|
||||
);
|
||||
debug!("borrow {:?} starts at {:?}", borrow_index, location);
|
||||
while let Some(location) = stack.pop() {
|
||||
// If region does not contain a point at the location, then add to list and skip
|
||||
// successor locations.
|
||||
|
Loading…
x
Reference in New Issue
Block a user