about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Crichton <wcrichto@cs.stanford.edu>2021-08-17 20:55:15 -0700
committerWill Crichton <wcrichto@cs.stanford.edu>2021-08-17 20:55:15 -0700
commit0ce96bdcfad27bcfc171afe37b105e02cd82cf61 (patch)
treec1c7f31831ee16ceb39e336aad1890668ef078eb
parent907ce72c434950e7d0492e5a1af15d4f9a2b2abd (diff)
downloadrust-0ce96bdcfad27bcfc171afe37b105e02cd82cf61.tar.gz
rust-0ce96bdcfad27bcfc171afe37b105e02cd82cf61.zip
Fix bug in fmt_diff_with
-rw-r--r--compiler/rustc_mir/src/dataflow/framework/fmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/dataflow/framework/fmt.rs b/compiler/rustc_mir/src/dataflow/framework/fmt.rs
index 0140a750544..35115ca9db7 100644
--- a/compiler/rustc_mir/src/dataflow/framework/fmt.rs
+++ b/compiler/rustc_mir/src/dataflow/framework/fmt.rs
@@ -33,7 +33,7 @@ pub trait DebugWithContext<C>: Eq + fmt::Debug {
         }
 
         write!(f, "\u{001f}-")?;
-        self.fmt_with(ctxt, f)
+        old.fmt_with(ctxt, f)
     }
 }