Skip to content

Commit 1611238

Browse files
Reset row background for each block
Now the first row of each basic block is always light instead of changing seemingly at random.
1 parent 702b45e commit 1611238

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_mir/dataflow/generic/graphviz.rs

+1
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ where
211211
)?;
212212

213213
// C: Entry state
214+
self.bg = Background::Light;
214215
self.results.seek_to_block_start(block);
215216
self.write_row_with_curr_state(w, "", "(on entry)")?;
216217
self.prev_state.overwrite(self.results.get());

0 commit comments

Comments
 (0)