Skip to content

Commit d18bfd6

Browse files
committed
cleanup polonius liveness fact generation: fix debug! logs
1 parent cd9ec27 commit d18bfd6

File tree

1 file changed

+5
-5
lines changed
  • src/librustc_mir/borrow_check/nll/type_check/liveness

1 file changed

+5
-5
lines changed

src/librustc_mir/borrow_check/nll/type_check/liveness/polonius.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ impl UseFactsExtractor<'_> {
2727
}
2828

2929
fn insert_def(&mut self, local: Local, location: Location) {
30-
debug!("LivenessFactsExtractor::insert_def()");
30+
debug!("UseFactsExtractor::insert_def()");
3131
self.var_defined.push((local, self.location_to_index(location)));
3232
}
3333

3434
fn insert_use(&mut self, local: Local, location: Location) {
35-
debug!("LivenessFactsExtractor::insert_use()");
35+
debug!("UseFactsExtractor::insert_use()");
3636
self.var_used.push((local, self.location_to_index(location)));
3737
}
3838

3939
fn insert_drop_use(&mut self, local: Local, location: Location) {
40-
debug!("LivenessFactsExtractor::insert_drop_use()");
40+
debug!("UseFactsExtractor::insert_drop_use()");
4141
self.var_drop_used.push((local, location));
4242
}
4343

4444
fn insert_path_access(&mut self, path: MovePathIndex, location: Location) {
45-
debug!("LivenessFactsExtractor::insert_path_access({:?}, {:?})", path, location);
45+
debug!("UseFactsExtractor::insert_path_access({:?}, {:?})", path, location);
4646
self.path_accessed_at.push((path, self.location_to_index(location)));
4747
}
4848

@@ -90,7 +90,7 @@ pub(super) fn populate_access_facts(
9090
move_data: &MoveData<'_>,
9191
drop_used: &mut Vec<(Local, Location)>,
9292
) {
93-
debug!("populate_var_liveness_facts()");
93+
debug!("populate_access_facts()");
9494

9595
if let Some(facts) = typeck.borrowck_context.all_facts.as_mut() {
9696
let mut extractor = UseFactsExtractor {

0 commit comments

Comments
 (0)