diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2025-01-26 21:22:46 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2025-01-26 21:22:46 +0000 |
| commit | 6bdc2dc3cf7534a8066a8f937698f4a7520b85aa (patch) | |
| tree | f7501827c91c5f8bfe27d353e593faed33b8fb27 | |
| parent | 052e9b430651f5cb89b511d131d1d7a47a28d215 (diff) | |
| download | rust-6bdc2dc3cf7534a8066a8f937698f4a7520b85aa.tar.gz rust-6bdc2dc3cf7534a8066a8f937698f4a7520b85aa.zip | |
tidy up html structure
- invert pre/code which was an invalid combination, that works fine in practice - remove unneeded code wrapper for graphs
| -rw-r--r-- | compiler/rustc_borrowck/src/polonius/dump.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_borrowck/src/polonius/dump.rs b/compiler/rustc_borrowck/src/polonius/dump.rs index 944b5b1d4a7..f71e6f3e6f3 100644 --- a/compiler/rustc_borrowck/src/polonius/dump.rs +++ b/compiler/rustc_borrowck/src/polonius/dump.rs @@ -74,7 +74,7 @@ fn emit_polonius_dump<'tcx>( // Section 1: the NLL + Polonius MIR. writeln!(out, "<div>")?; writeln!(out, "Raw MIR dump")?; - writeln!(out, "<code><pre>")?; + writeln!(out, "<pre><code>")?; emit_html_mir( tcx, body, @@ -84,15 +84,15 @@ fn emit_polonius_dump<'tcx>( closure_region_requirements, out, )?; - writeln!(out, "</pre></code>")?; + writeln!(out, "</code></pre>")?; writeln!(out, "</div>")?; // Section 2: mermaid visualization of the CFG. writeln!(out, "<div>")?; writeln!(out, "Control-flow graph")?; - writeln!(out, "<code><pre class='mermaid'>")?; + writeln!(out, "<pre class='mermaid'>")?; emit_mermaid_cfg(body, out)?; - writeln!(out, "</pre></code>")?; + writeln!(out, "</pre>")?; writeln!(out, "</div>")?; // Section 3: mermaid visualization of the NLL region graph. |
