about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/dataflow/framework
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-09-15 18:32:12 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-09-15 18:32:12 -0700
commitc910e038e844628b5a1fcf0e892eb88dd819ce47 (patch)
treedf33dd6430fb6fad837f95ab29aaabe92c67c42b /compiler/rustc_mir/src/dataflow/framework
parent9b4154193e8471f36b1a9e781f1ef7d492fc6a6c (diff)
downloadrust-c910e038e844628b5a1fcf0e892eb88dd819ce47.tar.gz
rust-c910e038e844628b5a1fcf0e892eb88dd819ce47.zip
Strip a single leading tab when rendering dataflow diffs
Diffstat (limited to 'compiler/rustc_mir/src/dataflow/framework')
-rw-r--r--compiler/rustc_mir/src/dataflow/framework/graphviz.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/dataflow/framework/graphviz.rs b/compiler/rustc_mir/src/dataflow/framework/graphviz.rs
index 179c471cf48..94151fbd090 100644
--- a/compiler/rustc_mir/src/dataflow/framework/graphviz.rs
+++ b/compiler/rustc_mir/src/dataflow/framework/graphviz.rs
@@ -578,7 +578,7 @@ where
         return String::new();
     }
 
-    let re = Regex::new("\u{001f}([+-])").unwrap();
+    let re = Regex::new("\t?\u{001f}([+-])").unwrap();
 
     let raw_diff = format!("{:#?}", DebugDiffWithAdapter { new, old, ctxt });