]> git.lizzy.rs Git - rust.git/commitdiff
Avoid logging the whole MIR body in SimplifyCfg
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Sun, 17 Jan 2021 00:00:00 +0000 (00:00 +0000)
committerTomasz Miąsko <tomasz.miasko@gmail.com>
Sun, 17 Jan 2021 14:57:21 +0000 (15:57 +0100)
compiler/rustc_mir/src/transform/simplify.rs

index b7c9a3a8688ec7907c976b0b5363dffbe09c09f4..289231e52cb41baf65c40823b75eb58f6e2f9d59 100644 (file)
@@ -61,7 +61,7 @@ fn name(&self) -> Cow<'_, str> {
     }
 
     fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
-        debug!("SimplifyCfg({:?}) - simplifying {:?}", self.label, body);
+        debug!("SimplifyCfg({:?}) - simplifying {:?}", self.label, body.source);
         simplify_cfg(body);
     }
 }