]> git.lizzy.rs Git - rust.git/commitdiff
liveness: Remove redundant debug logging
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Sat, 26 Sep 2020 00:00:00 +0000 (00:00 +0000)
committerTomasz Miąsko <tomasz.miasko@gmail.com>
Sat, 26 Sep 2020 13:38:22 +0000 (15:38 +0200)
The IrMaps::add_variable already contains debug logging. Don't duplicate it.

compiler/rustc_passes/src/liveness.rs

index db9495201cf300633ea57f1df7b49ee10db36a81..50ea4ed76b20fe4699147f683c73dad9d1dc13b0 100644 (file)
@@ -367,7 +367,6 @@ fn visit_fn<'tcx>(
 
     if let Some(upvars) = ir.tcx.upvars_mentioned(def_id) {
         for (&var_hir_id, _upvar) in upvars {
-            debug!("adding upvar {:?}", var_hir_id);
             let var_name = ir.tcx.hir().name(var_hir_id);
             fn_maps.add_variable(Upvar(var_hir_id, var_name));
         }
@@ -379,7 +378,6 @@ fn visit_fn<'tcx>(
             _ => false,
         };
         param.pat.each_binding(|_bm, hir_id, _x, ident| {
-            debug!("adding parameters {:?}", hir_id);
             let var = if is_shorthand {
                 Local(LocalInfo { id: hir_id, name: ident.name, is_shorthand: true })
             } else {