@@ -1160,7 +1160,7 @@ pub enum TerminatorKind<'tcx> {
1160
1160
1161
1161
/// A block where control flow only ever takes one real path, but borrowck
1162
1162
/// needs to be more conservative.
1163
- FalseEdges {
1163
+ FalseEdge {
1164
1164
/// The target normal control flow will take.
1165
1165
real_target : BasicBlock ,
1166
1166
/// A block control flow could conceptually jump to, but won't in
@@ -1314,7 +1314,7 @@ impl<'tcx> TerminatorKind<'tcx> {
1314
1314
Some ( t) . into_iter ( ) . chain ( slice:: from_ref ( u) )
1315
1315
}
1316
1316
SwitchInt { ref targets, .. } => None . into_iter ( ) . chain ( & targets[ ..] ) ,
1317
- FalseEdges { ref real_target, ref imaginary_target } => {
1317
+ FalseEdge { ref real_target, ref imaginary_target } => {
1318
1318
Some ( real_target) . into_iter ( ) . chain ( slice:: from_ref ( imaginary_target) )
1319
1319
}
1320
1320
}
@@ -1348,7 +1348,7 @@ impl<'tcx> TerminatorKind<'tcx> {
1348
1348
Some ( t) . into_iter ( ) . chain ( slice:: from_mut ( u) )
1349
1349
}
1350
1350
SwitchInt { ref mut targets, .. } => None . into_iter ( ) . chain ( & mut targets[ ..] ) ,
1351
- FalseEdges { ref mut real_target, ref mut imaginary_target } => {
1351
+ FalseEdge { ref mut real_target, ref mut imaginary_target } => {
1352
1352
Some ( real_target) . into_iter ( ) . chain ( slice:: from_mut ( imaginary_target) )
1353
1353
}
1354
1354
}
@@ -1364,7 +1364,7 @@ impl<'tcx> TerminatorKind<'tcx> {
1364
1364
| TerminatorKind :: GeneratorDrop
1365
1365
| TerminatorKind :: Yield { .. }
1366
1366
| TerminatorKind :: SwitchInt { .. }
1367
- | TerminatorKind :: FalseEdges { .. }
1367
+ | TerminatorKind :: FalseEdge { .. }
1368
1368
| TerminatorKind :: InlineAsm { .. } => None ,
1369
1369
TerminatorKind :: Call { cleanup : ref unwind, .. }
1370
1370
| TerminatorKind :: Assert { cleanup : ref unwind, .. }
@@ -1384,7 +1384,7 @@ impl<'tcx> TerminatorKind<'tcx> {
1384
1384
| TerminatorKind :: GeneratorDrop
1385
1385
| TerminatorKind :: Yield { .. }
1386
1386
| TerminatorKind :: SwitchInt { .. }
1387
- | TerminatorKind :: FalseEdges { .. }
1387
+ | TerminatorKind :: FalseEdge { .. }
1388
1388
| TerminatorKind :: InlineAsm { .. } => None ,
1389
1389
TerminatorKind :: Call { cleanup : ref mut unwind, .. }
1390
1390
| TerminatorKind :: Assert { cleanup : ref mut unwind, .. }
@@ -1598,7 +1598,7 @@ impl<'tcx> TerminatorKind<'tcx> {
1598
1598
msg. fmt_assert_args ( fmt) ?;
1599
1599
write ! ( fmt, ")" )
1600
1600
}
1601
- FalseEdges { .. } => write ! ( fmt, "falseEdges " ) ,
1601
+ FalseEdge { .. } => write ! ( fmt, "falseEdge " ) ,
1602
1602
FalseUnwind { .. } => write ! ( fmt, "falseUnwind" ) ,
1603
1603
InlineAsm { template, ref operands, options, .. } => {
1604
1604
write ! ( fmt, "asm!(\" {}\" " , InlineAsmTemplatePiece :: to_string( template) ) ?;
@@ -1683,7 +1683,7 @@ impl<'tcx> TerminatorKind<'tcx> {
1683
1683
}
1684
1684
Assert { cleanup : None , .. } => vec ! [ "" . into( ) ] ,
1685
1685
Assert { .. } => vec ! [ "success" . into( ) , "unwind" . into( ) ] ,
1686
- FalseEdges { .. } => vec ! [ "real" . into( ) , "imaginary" . into( ) ] ,
1686
+ FalseEdge { .. } => vec ! [ "real" . into( ) , "imaginary" . into( ) ] ,
1687
1687
FalseUnwind { unwind : Some ( _) , .. } => vec ! [ "real" . into( ) , "cleanup" . into( ) ] ,
1688
1688
FalseUnwind { unwind : None , .. } => vec ! [ "real" . into( ) ] ,
1689
1689
InlineAsm { destination : Some ( _) , .. } => vec ! [ "" . into( ) ] ,
0 commit comments