Skip to content

Commit cd766c9

Browse files
authored
Rollup merge of rust-lang#76775 - ecstatic-morse:dataflow-extra-tab-diff, r=Mark-Simulacrum
Strip a single leading tab when rendering dataflow diffs The `fmt_diff_with` formatter uses a tab to separate additions from subtractions. Strip it when rendering those diffs on separate lines. r? @Mark-Simulacrum (since you're speedy)
2 parents 5d8bc90 + c910e03 commit cd766c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/dataflow/framework/graphviz.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ where
578578
return String::new();
579579
}
580580

581-
let re = Regex::new("\u{001f}([+-])").unwrap();
581+
let re = Regex::new("\t?\u{001f}([+-])").unwrap();
582582

583583
let raw_diff = format!("{:#?}", DebugDiffWithAdapter { new, old, ctxt });
584584

0 commit comments

Comments
 (0)