Skip to content

Commit 9c63714

Browse files
committed
add some debugging statements
1 parent 4500fe0 commit 9c63714

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_mir/dataflow/impls/borrows.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@ fn precompute_borrows_out_of_scope<'a, 'tcx>(
6666
let mut visited = FxHashSet();
6767
visited.insert(location);
6868

69+
debug!("borrow {:?} starts at {:?}", borrow_index, location);
70+
6971
while let Some(location) = stack.pop() {
7072
// If region does not contain a point at the location, then add to list and skip
7173
// successor locations.
7274
if !regioncx.region_contains_point(borrow_region, location) {
75+
debug!("borrow {:?} gets killed at {:?}", borrow_index, location);
7376
borrows_out_of_scope_at_location
7477
.entry(location)
7578
.or_insert(vec![])

0 commit comments

Comments
 (0)