Fix rebase fallout
This commit is contained in:
parent
8902ce5d84
commit
4c83eec008
3 changed files with 7 additions and 12 deletions
|
@ -362,7 +362,7 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
|
|||
fn gather_terminator(&mut self, term: &Terminator<'tcx>) {
|
||||
match term.kind {
|
||||
TerminatorKind::Goto { target: _ }
|
||||
| TerminatorKind::FalseEdges { .. }
|
||||
| TerminatorKind::FalseEdge { .. }
|
||||
| TerminatorKind::FalseUnwind { .. }
|
||||
// In some sense returning moves the return place into the current
|
||||
// call's destination, however, since there are no statements after
|
||||
|
|
|
@ -114,21 +114,16 @@ where
|
|||
let (blk, bgcolor) = if data.is_cleanup {
|
||||
(format!("{} (cleanup)", block.index()), "lightblue")
|
||||
} else {
|
||||
let color = if dark_mode {
|
||||
"dimgray"
|
||||
} else {
|
||||
"gray"
|
||||
};
|
||||
(format!("{}", block.index()), "gray")
|
||||
let color = if dark_mode { "dimgray" } else { "gray" };
|
||||
(format!("{}", block.index()), color)
|
||||
};
|
||||
write!(
|
||||
w,
|
||||
r#"<tr><td bgcolor="{bgcolor}" {attrs} colspan="{colspan}">{blk}</td></tr>"#,
|
||||
bgcolor = if dark_mode { "dimgray" } else { "gray" },
|
||||
attrs = r#"align="center""#,
|
||||
colspan = num_cols,
|
||||
blk = blk,
|
||||
color = color
|
||||
bgcolor = bgcolor
|
||||
)?;
|
||||
|
||||
init(w)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue