We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6bec9d commit e41a7c5Copy full SHA for e41a7c5
src/librustc_mir/util/graphviz.rs
@@ -97,12 +97,17 @@ where
97
write!(w, r#"<table border="0" cellborder="1" cellspacing="0">"#)?;
98
99
// Basic block number at the top.
100
+ let (blk, color) = if data.is_cleanup {
101
+ (format!("{} (cleanup)", block.index()), "lightblue")
102
+ } else {
103
+ (format!("{}", block.index()), "gray")
104
+ };
105
write!(
106
w,
- r#"<tr><td {attrs} colspan="{colspan}">{blk}</td></tr>"#,
- attrs = r#"bgcolor="gray" align="center""#,
107
+ r#"<tr><td bgcolor="{color}" align="center" colspan="{colspan}">{blk}</td></tr>"#,
108
colspan = num_cols,
- blk = block.index()
109
+ blk = blk,
110
+ color = color
111
)?;
112
113
init(w)?;
0 commit comments