@@ -1160,7 +1160,7 @@ pub enum TerminatorKind<'tcx> {
11601160
11611161 /// A block where control flow only ever takes one real path, but borrowck
11621162 /// needs to be more conservative.
1163- FalseEdges {
1163+ FalseEdge {
11641164 /// The target normal control flow will take.
11651165 real_target : BasicBlock ,
11661166 /// A block control flow could conceptually jump to, but won't in
@@ -1314,7 +1314,7 @@ impl<'tcx> TerminatorKind<'tcx> {
13141314 Some ( t) . into_iter ( ) . chain ( slice:: from_ref ( u) )
13151315 }
13161316 SwitchInt { ref targets, .. } => None . into_iter ( ) . chain ( & targets[ ..] ) ,
1317- FalseEdges { ref real_target, ref imaginary_target } => {
1317+ FalseEdge { ref real_target, ref imaginary_target } => {
13181318 Some ( real_target) . into_iter ( ) . chain ( slice:: from_ref ( imaginary_target) )
13191319 }
13201320 }
@@ -1348,7 +1348,7 @@ impl<'tcx> TerminatorKind<'tcx> {
13481348 Some ( t) . into_iter ( ) . chain ( slice:: from_mut ( u) )
13491349 }
13501350 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 } => {
13521352 Some ( real_target) . into_iter ( ) . chain ( slice:: from_mut ( imaginary_target) )
13531353 }
13541354 }
@@ -1364,7 +1364,7 @@ impl<'tcx> TerminatorKind<'tcx> {
13641364 | TerminatorKind :: GeneratorDrop
13651365 | TerminatorKind :: Yield { .. }
13661366 | TerminatorKind :: SwitchInt { .. }
1367- | TerminatorKind :: FalseEdges { .. }
1367+ | TerminatorKind :: FalseEdge { .. }
13681368 | TerminatorKind :: InlineAsm { .. } => None ,
13691369 TerminatorKind :: Call { cleanup : ref unwind, .. }
13701370 | TerminatorKind :: Assert { cleanup : ref unwind, .. }
@@ -1384,7 +1384,7 @@ impl<'tcx> TerminatorKind<'tcx> {
13841384 | TerminatorKind :: GeneratorDrop
13851385 | TerminatorKind :: Yield { .. }
13861386 | TerminatorKind :: SwitchInt { .. }
1387- | TerminatorKind :: FalseEdges { .. }
1387+ | TerminatorKind :: FalseEdge { .. }
13881388 | TerminatorKind :: InlineAsm { .. } => None ,
13891389 TerminatorKind :: Call { cleanup : ref mut unwind, .. }
13901390 | TerminatorKind :: Assert { cleanup : ref mut unwind, .. }
@@ -1598,7 +1598,7 @@ impl<'tcx> TerminatorKind<'tcx> {
15981598 msg. fmt_assert_args ( fmt) ?;
15991599 write ! ( fmt, ")" )
16001600 }
1601- FalseEdges { .. } => write ! ( fmt, "falseEdges " ) ,
1601+ FalseEdge { .. } => write ! ( fmt, "falseEdge " ) ,
16021602 FalseUnwind { .. } => write ! ( fmt, "falseUnwind" ) ,
16031603 InlineAsm { template, ref operands, options, .. } => {
16041604 write ! ( fmt, "asm!(\" {}\" " , InlineAsmTemplatePiece :: to_string( template) ) ?;
@@ -1683,7 +1683,7 @@ impl<'tcx> TerminatorKind<'tcx> {
16831683 }
16841684 Assert { cleanup : None , .. } => vec ! [ "" . into( ) ] ,
16851685 Assert { .. } => vec ! [ "success" . into( ) , "unwind" . into( ) ] ,
1686- FalseEdges { .. } => vec ! [ "real" . into( ) , "imaginary" . into( ) ] ,
1686+ FalseEdge { .. } => vec ! [ "real" . into( ) , "imaginary" . into( ) ] ,
16871687 FalseUnwind { unwind : Some ( _) , .. } => vec ! [ "real" . into( ) , "cleanup" . into( ) ] ,
16881688 FalseUnwind { unwind : None , .. } => vec ! [ "real" . into( ) ] ,
16891689 InlineAsm { destination : Some ( _) , .. } => vec ! [ "" . into( ) ] ,
0 commit comments