diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-09-26 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-09-26 15:38:22 +0200 |
| commit | 9b5835ec7973a52f2e9d6f4ed9a2181bebfdc399 (patch) | |
| tree | 686f01ba6c423873c70ddf03852679b5cec49499 | |
| parent | 6f9a8a7f9b9732c55511d2a2a3914e8feafc7c52 (diff) | |
| download | rust-9b5835ec7973a52f2e9d6f4ed9a2181bebfdc399.tar.gz rust-9b5835ec7973a52f2e9d6f4ed9a2181bebfdc399.zip | |
liveness: Remove redundant debug logging
The IrMaps::add_variable already contains debug logging. Don't duplicate it.
| -rw-r--r-- | compiler/rustc_passes/src/liveness.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_passes/src/liveness.rs b/compiler/rustc_passes/src/liveness.rs index db9495201cf..50ea4ed76b2 100644 --- a/compiler/rustc_passes/src/liveness.rs +++ b/compiler/rustc_passes/src/liveness.rs @@ -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 { |
