Skip to content

Commit 997c6a8

Browse files
committed
Escape diff strings in graphviz
1 parent 6bcdcc7 commit 997c6a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_mir_dataflow/src/framework/graphviz.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ where
800800
let re = regex!("\t?\u{001f}([+-])");
801801

802802
let raw_diff = format!("{:#?}", DebugDiffWithAdapter { new, old, ctxt });
803+
let raw_diff = dot::escape_html(&raw_diff);
803804

804805
// Replace newlines in the `Debug` output with `<br/>`
805806
let raw_diff = raw_diff.replace('\n', r#"<br align="left"/>"#);

0 commit comments

Comments
 (0)