Skip to content

Commit 9b5835e

Browse files
committed
liveness: Remove redundant debug logging
The IrMaps::add_variable already contains debug logging. Don't duplicate it.
1 parent 6f9a8a7 commit 9b5835e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_passes/src/liveness.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ fn visit_fn<'tcx>(
367367

368368
if let Some(upvars) = ir.tcx.upvars_mentioned(def_id) {
369369
for (&var_hir_id, _upvar) in upvars {
370-
debug!("adding upvar {:?}", var_hir_id);
371370
let var_name = ir.tcx.hir().name(var_hir_id);
372371
fn_maps.add_variable(Upvar(var_hir_id, var_name));
373372
}
@@ -379,7 +378,6 @@ fn visit_fn<'tcx>(
379378
_ => false,
380379
};
381380
param.pat.each_binding(|_bm, hir_id, _x, ident| {
382-
debug!("adding parameters {:?}", hir_id);
383381
let var = if is_shorthand {
384382
Local(LocalInfo { id: hir_id, name: ident.name, is_shorthand: true })
385383
} else {

0 commit comments

Comments
 (0)