@@ -1112,7 +1112,7 @@ pub enum TerminatorKind<'tcx> {
1112
1112
Unreachable ,
1113
1113
1114
1114
/// Drop the `Place`.
1115
- Drop { location : Place < ' tcx > , target : BasicBlock , unwind : Option < BasicBlock > } ,
1115
+ Drop { place : Place < ' tcx > , target : BasicBlock , unwind : Option < BasicBlock > } ,
1116
1116
1117
1117
/// Drop the `Place` and assign the new value over it. This ensures
1118
1118
/// that the assignment to `P` occurs *even if* the destructor for
@@ -1141,7 +1141,7 @@ pub enum TerminatorKind<'tcx> {
1141
1141
/// }
1142
1142
/// ```
1143
1143
DropAndReplace {
1144
- location : Place < ' tcx > ,
1144
+ place : Place < ' tcx > ,
1145
1145
value : Operand < ' tcx > ,
1146
1146
target : BasicBlock ,
1147
1147
unwind : Option < BasicBlock > ,
@@ -1607,9 +1607,9 @@ impl<'tcx> TerminatorKind<'tcx> {
1607
1607
Abort => write ! ( fmt, "abort" ) ,
1608
1608
Yield { value, resume_arg, .. } => write ! ( fmt, "{:?} = yield({:?})" , resume_arg, value) ,
1609
1609
Unreachable => write ! ( fmt, "unreachable" ) ,
1610
- Drop { location , .. } => write ! ( fmt, "drop({:?})" , location ) ,
1611
- DropAndReplace { location , value, .. } => {
1612
- write ! ( fmt, "replace({:?} <- {:?})" , location , value)
1610
+ Drop { place , .. } => write ! ( fmt, "drop({:?})" , place ) ,
1611
+ DropAndReplace { place , value, .. } => {
1612
+ write ! ( fmt, "replace({:?} <- {:?})" , place , value)
1613
1613
}
1614
1614
Call { func, args, destination, .. } => {
1615
1615
if let Some ( ( destination, _) ) = destination {
0 commit comments