Skip to content

Commit 6bdc2dc

Browse files
committed
tidy up html structure
- invert pre/code which was an invalid combination, that works fine in practice - remove unneeded code wrapper for graphs
1 parent 052e9b4 commit 6bdc2dc

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_borrowck/src/polonius

1 file changed

+4
-4
lines changed

compiler/rustc_borrowck/src/polonius/dump.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn emit_polonius_dump<'tcx>(
7474
// Section 1: the NLL + Polonius MIR.
7575
writeln!(out, "<div>")?;
7676
writeln!(out, "Raw MIR dump")?;
77-
writeln!(out, "<code><pre>")?;
77+
writeln!(out, "<pre><code>")?;
7878
emit_html_mir(
7979
tcx,
8080
body,
@@ -84,15 +84,15 @@ fn emit_polonius_dump<'tcx>(
8484
closure_region_requirements,
8585
out,
8686
)?;
87-
writeln!(out, "</pre></code>")?;
87+
writeln!(out, "</code></pre>")?;
8888
writeln!(out, "</div>")?;
8989

9090
// Section 2: mermaid visualization of the CFG.
9191
writeln!(out, "<div>")?;
9292
writeln!(out, "Control-flow graph")?;
93-
writeln!(out, "<code><pre class='mermaid'>")?;
93+
writeln!(out, "<pre class='mermaid'>")?;
9494
emit_mermaid_cfg(body, out)?;
95-
writeln!(out, "</pre></code>")?;
95+
writeln!(out, "</pre>")?;
9696
writeln!(out, "</div>")?;
9797

9898
// Section 3: mermaid visualization of the NLL region graph.

0 commit comments

Comments
 (0)