diff options
| author | Jannis Christopher Köhl <mail@koehl.dev> | 2022-08-25 16:43:46 +0000 |
|---|---|---|
| committer | Jannis Christopher Köhl <mail@koehl.dev> | 2022-11-07 10:35:08 +0100 |
| commit | 4f9c30fb676482a5148f28c0728b5280246a9886 (patch) | |
| tree | 55564521204033dbfceb6cffcdc04dfeac266546 /compiler/rustc_mir_dataflow/src/framework | |
| parent | 9b735a7132acd58b3bd34c084e9ca5b4ca7450a2 (diff) | |
| download | rust-4f9c30fb676482a5148f28c0728b5280246a9886.tar.gz rust-4f9c30fb676482a5148f28c0728b5280246a9886.zip | |
Add initial version of value analysis and dataflow constant propagation
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/framework')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/framework/graphviz.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_mir_dataflow/src/framework/graphviz.rs b/compiler/rustc_mir_dataflow/src/framework/graphviz.rs index 579fe68a149..c9d5601f207 100644 --- a/compiler/rustc_mir_dataflow/src/framework/graphviz.rs +++ b/compiler/rustc_mir_dataflow/src/framework/graphviz.rs @@ -475,7 +475,10 @@ where r#"<td colspan="{colspan}" {fmt} align="left">{state}</td>"#, colspan = this.style.num_state_columns(), fmt = fmt, - state = format!("{:?}", DebugWithAdapter { this: state, ctxt: analysis }), + state = dot::escape_html(&format!( + "{:?}", + DebugWithAdapter { this: state, ctxt: analysis } + )), ) }) } |
