Skip to content

Commit 26451d0

Browse files
Print flow state in debug messages for find_dead_unwinds
1 parent 2aa3935 commit 26451d0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/librustc_mir/transform/elaborate_drops.rs

+9-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn find_dead_unwinds<'tcx>(
9191
_ => continue,
9292
};
9393

94-
debug!("find_dead_unwinds @ {:?}: {:?}; init_data={:?}", bb, bb_data, flow_inits.get());
94+
debug!("find_dead_unwinds @ {:?}: {:?}", bb, bb_data);
9595

9696
let path = match env.move_data.rev_lookup.find(location.as_ref()) {
9797
LookupResult::Exact(e) => e,
@@ -101,9 +101,15 @@ fn find_dead_unwinds<'tcx>(
101101
}
102102
};
103103

104-
debug!("find_dead_unwinds @ {:?}: path({:?})={:?}", bb, location, path);
105-
106104
flow_inits.seek_before(body.terminator_loc(bb));
105+
debug!(
106+
"find_dead_unwinds @ {:?}: path({:?})={:?}; init_data={:?}",
107+
bb,
108+
location,
109+
path,
110+
flow_inits.get()
111+
);
112+
107113
let mut maybe_live = false;
108114
on_all_drop_children_bits(tcx, body, &env, path, |child| {
109115
maybe_live |= flow_inits.contains(child);

0 commit comments

Comments
 (0)