about summary refs log tree commit diff
path: root/src/librustc_mir
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-07-24 20:42:00 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-07-31 22:38:20 +0200
commitec7230fea2f4a96a1993c54bf2b17892d2e978b4 (patch)
tree4761e206797c576bfbde450aa2b0f338ce298f8a /src/librustc_mir
parent6e87bacd37539b7e7cd75152dffd225047fa983a (diff)
downloadrust-ec7230fea2f4a96a1993c54bf2b17892d2e978b4.tar.gz
rust-ec7230fea2f4a96a1993c54bf2b17892d2e978b4.zip
Move from `log` to `tracing`
Diffstat (limited to 'src/librustc_mir')
-rw-r--r--src/librustc_mir/Cargo.toml2
-rw-r--r--src/librustc_mir/interpret/eval_context.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc_mir/Cargo.toml b/src/librustc_mir/Cargo.toml
index aebce78e401..f05c47e0ed6 100644
--- a/src/librustc_mir/Cargo.toml
+++ b/src/librustc_mir/Cargo.toml
@@ -13,7 +13,7 @@ doctest = false
 either = "1.5.0"
 rustc_graphviz = { path = "../librustc_graphviz" }
 itertools = "0.8"
-log = "0.4"
+log = { package = "tracing", version = "0.1" }
 log_settings = "0.1.1"
 polonius-engine = "0.12.0"
 rustc_middle = { path = "../librustc_middle" }
diff --git a/src/librustc_mir/interpret/eval_context.rs b/src/librustc_mir/interpret/eval_context.rs
index 630b2890835..879a8e64490 100644
--- a/src/librustc_mir/interpret/eval_context.rs
+++ b/src/librustc_mir/interpret/eval_context.rs
@@ -818,11 +818,10 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
     ) -> InterpResult<'tcx> {
         // FIXME: should we tell the user that there was a local which was never written to?
         if let LocalValue::Live(Operand::Indirect(MemPlace { ptr, .. })) = local {
-            trace!("deallocating local");
             // All locals have a backing allocation, even if the allocation is empty
             // due to the local having ZST type.
             let ptr = ptr.assert_ptr();
-            trace!("{:?}", self.memory.dump_alloc(ptr.alloc_id));
+            trace!("deallocating local: {:?}", self.memory.dump_alloc(ptr.alloc_id));
             self.memory.deallocate_local(ptr)?;
         };
         Ok(())