Skip to content

Commit 51ecb96

Browse files
committed
add different color for cleanup nodes in dark mode
1 parent 86a7831 commit 51ecb96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_mir/src/util/generic_graph.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ fn bb_to_graph_node(block: BasicBlock, body: &Body<'_>, dark_mode: bool) -> Node
4141
let label = node(def_id, block);
4242

4343
let (title, bgcolor) = if data.is_cleanup {
44-
(format!("{} (cleanup)", block.index()), "lightblue")
44+
let color = if dark_mode { "royalblue" } else { "lightblue" };
45+
(format!("{} (cleanup)", block.index()), color)
4546
} else {
4647
let color = if dark_mode { "dimgray" } else { "gray" };
4748
(format!("{}", block.index()), color)

0 commit comments

Comments
 (0)