Skip to content

Commit 4c83eec

Browse files
committed
Fix rebase fallout
1 parent 8902ce5 commit 4c83eec

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

compiler/rustc_mir/src/dataflow/move_paths/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
362362
fn gather_terminator(&mut self, term: &Terminator<'tcx>) {
363363
match term.kind {
364364
TerminatorKind::Goto { target: _ }
365-
| TerminatorKind::FalseEdges { .. }
365+
| TerminatorKind::FalseEdge { .. }
366366
| TerminatorKind::FalseUnwind { .. }
367367
// In some sense returning moves the return place into the current
368368
// call's destination, however, since there are no statements after

compiler/rustc_mir/src/util/graphviz.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,16 @@ where
114114
let (blk, bgcolor) = if data.is_cleanup {
115115
(format!("{} (cleanup)", block.index()), "lightblue")
116116
} else {
117-
let color = if dark_mode {
118-
"dimgray"
119-
} else {
120-
"gray"
121-
};
122-
(format!("{}", block.index()), "gray")
117+
let color = if dark_mode { "dimgray" } else { "gray" };
118+
(format!("{}", block.index()), color)
123119
};
124120
write!(
125121
w,
126122
r#"<tr><td bgcolor="{bgcolor}" {attrs} colspan="{colspan}">{blk}</td></tr>"#,
127-
bgcolor = if dark_mode { "dimgray" } else { "gray" },
128123
attrs = r#"align="center""#,
129124
colspan = num_cols,
130125
blk = blk,
131-
color = color
126+
bgcolor = bgcolor
132127
)?;
133128

134129
init(w)?;

compiler/rustc_mir_build/src/build/scope.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ use crate::build::{BlockAnd, BlockAndExtension, BlockFrame, Builder, CFG};
8585
use crate::thir::{Expr, ExprRef, LintLevel};
8686
use rustc_data_structures::fx::FxHashMap;
8787
use rustc_hir as hir;
88-
use rustc_hir::GeneratorKind;
8988
use rustc_index::vec::IndexVec;
9089
use rustc_middle::middle::region;
9190
use rustc_middle::mir::*;
@@ -364,7 +363,7 @@ impl DropTree {
364363
target: blocks[drop_data.1].unwrap(),
365364
// The caller will handle this if needed.
366365
unwind: None,
367-
location: drop_data.0.local.into(),
366+
place: drop_data.0.local.into(),
368367
};
369368
cfg.terminate(block, drop_data.0.source_info, terminator);
370369
}
@@ -1389,7 +1388,8 @@ impl<'tcx> DropTreeBuilder<'tcx> for Unwind {
13891388
| TerminatorKind::Unreachable
13901389
| TerminatorKind::Yield { .. }
13911390
| TerminatorKind::GeneratorDrop
1392-
| TerminatorKind::FalseEdges { .. } => {
1391+
| TerminatorKind::FalseEdge { .. }
1392+
| TerminatorKind::InlineAsm {.. } => {
13931393
span_bug!(term.source_info.span, "cannot unwind from {:?}", term.kind)
13941394
}
13951395
}

0 commit comments

Comments
 (0)