about summary refs log tree commit diff
path: root/src/librustc_mir
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2020-06-04 11:34:42 -0400
committerFelix S. Klock II <pnkfelix@pnkfx.org>2020-06-04 11:34:42 -0400
commite1ebdeeefb8651d4eb944483faf92d3ad4b10c99 (patch)
tree2fb795cdc3b49bd0bcb42fed51a3201305bd2e00 /src/librustc_mir
parent7cde4ab0d065bf3ac0324eb8a24f57507ef2dedc (diff)
downloadrust-e1ebdeeefb8651d4eb944483faf92d3ad4b10c99.tar.gz
rust-e1ebdeeefb8651d4eb944483faf92d3ad4b10c99.zip
Revert "Defer creating drop trees in MIR lowering until leaving that scope"
This reverts commit 611988551fba1bcbb33ae2e1e0171cb8d2e70d5a.
Diffstat (limited to 'src/librustc_mir')
-rw-r--r--src/librustc_mir/util/graphviz.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/librustc_mir/util/graphviz.rs b/src/librustc_mir/util/graphviz.rs
index fb862b926d7..aed29a076a4 100644
--- a/src/librustc_mir/util/graphviz.rs
+++ b/src/librustc_mir/util/graphviz.rs
@@ -97,17 +97,12 @@ where
     write!(w, r#"<table border="0" cellborder="1" cellspacing="0">"#)?;
 
     // Basic block number at the top.
-    let (blk, color) = if data.is_cleanup {
-        (format!("{} (cleanup)", block.index()), "lightblue")
-    } else {
-        (format!("{}", block.index()), "gray")
-    };
     write!(
         w,
-        r#"<tr><td bgcolor="{color}" align="center" colspan="{colspan}">{blk}</td></tr>"#,
+        r#"<tr><td {attrs} colspan="{colspan}">{blk}</td></tr>"#,
+        attrs = r#"bgcolor="gray" align="center""#,
         colspan = num_cols,
-        blk = blk,
-        color = color
+        blk = block.index()
     )?;
 
     init(w)?;