@@ -148,7 +148,6 @@ impl<'tcx> TerminatorKind<'tcx> {
148
148
| Call { target : None , cleanup : Some ( t) , .. }
149
149
| Call { target : Some ( t) , cleanup : None , .. }
150
150
| Yield { resume : t, drop : None , .. }
151
- | DropAndReplace { target : t, unwind : None , .. }
152
151
| Drop { target : t, unwind : None , .. }
153
152
| Assert { target : t, cleanup : None , .. }
154
153
| FalseUnwind { real_target : t, unwind : None }
@@ -158,7 +157,6 @@ impl<'tcx> TerminatorKind<'tcx> {
158
157
}
159
158
Call { target : Some ( t) , cleanup : Some ( ref u) , .. }
160
159
| Yield { resume : t, drop : Some ( ref u) , .. }
161
- | DropAndReplace { target : t, unwind : Some ( ref u) , .. }
162
160
| Drop { target : t, unwind : Some ( ref u) , .. }
163
161
| Assert { target : t, cleanup : Some ( ref u) , .. }
164
162
| FalseUnwind { real_target : t, unwind : Some ( ref u) }
@@ -188,7 +186,6 @@ impl<'tcx> TerminatorKind<'tcx> {
188
186
| Call { target : None , cleanup : Some ( ref mut t) , .. }
189
187
| Call { target : Some ( ref mut t) , cleanup : None , .. }
190
188
| Yield { resume : ref mut t, drop : None , .. }
191
- | DropAndReplace { target : ref mut t, unwind : None , .. }
192
189
| Drop { target : ref mut t, unwind : None , .. }
193
190
| Assert { target : ref mut t, cleanup : None , .. }
194
191
| FalseUnwind { real_target : ref mut t, unwind : None }
@@ -198,7 +195,6 @@ impl<'tcx> TerminatorKind<'tcx> {
198
195
}
199
196
Call { target : Some ( ref mut t) , cleanup : Some ( ref mut u) , .. }
200
197
| Yield { resume : ref mut t, drop : Some ( ref mut u) , .. }
201
- | DropAndReplace { target : ref mut t, unwind : Some ( ref mut u) , .. }
202
198
| Drop { target : ref mut t, unwind : Some ( ref mut u) , .. }
203
199
| Assert { target : ref mut t, cleanup : Some ( ref mut u) , .. }
204
200
| FalseUnwind { real_target : ref mut t, unwind : Some ( ref mut u) }
@@ -225,7 +221,6 @@ impl<'tcx> TerminatorKind<'tcx> {
225
221
| TerminatorKind :: FalseEdge { .. } => None ,
226
222
TerminatorKind :: Call { cleanup : ref unwind, .. }
227
223
| TerminatorKind :: Assert { cleanup : ref unwind, .. }
228
- | TerminatorKind :: DropAndReplace { ref unwind, .. }
229
224
| TerminatorKind :: Drop { ref unwind, .. }
230
225
| TerminatorKind :: FalseUnwind { ref unwind, .. }
231
226
| TerminatorKind :: InlineAsm { cleanup : ref unwind, .. } => Some ( unwind) ,
@@ -245,7 +240,6 @@ impl<'tcx> TerminatorKind<'tcx> {
245
240
| TerminatorKind :: FalseEdge { .. } => None ,
246
241
TerminatorKind :: Call { cleanup : ref mut unwind, .. }
247
242
| TerminatorKind :: Assert { cleanup : ref mut unwind, .. }
248
- | TerminatorKind :: DropAndReplace { ref mut unwind, .. }
249
243
| TerminatorKind :: Drop { ref mut unwind, .. }
250
244
| TerminatorKind :: FalseUnwind { ref mut unwind, .. }
251
245
| TerminatorKind :: InlineAsm { cleanup : ref mut unwind, .. } => Some ( unwind) ,
@@ -309,9 +303,6 @@ impl<'tcx> TerminatorKind<'tcx> {
309
303
Yield { value, resume_arg, .. } => write ! ( fmt, "{:?} = yield({:?})" , resume_arg, value) ,
310
304
Unreachable => write ! ( fmt, "unreachable" ) ,
311
305
Drop { place, .. } => write ! ( fmt, "drop({:?})" , place) ,
312
- DropAndReplace { place, value, .. } => {
313
- write ! ( fmt, "replace({:?} <- {:?})" , place, value)
314
- }
315
306
Call { func, args, destination, .. } => {
316
307
write ! ( fmt, "{:?} = " , destination) ?;
317
308
write ! ( fmt, "{:?}(" , func) ?;
@@ -403,10 +394,10 @@ impl<'tcx> TerminatorKind<'tcx> {
403
394
Call { target : None , cleanup : None , .. } => vec ! [ ] ,
404
395
Yield { drop : Some ( _) , .. } => vec ! [ "resume" . into( ) , "drop" . into( ) ] ,
405
396
Yield { drop : None , .. } => vec ! [ "resume" . into( ) ] ,
406
- DropAndReplace { unwind : None , .. } | Drop { unwind : None , .. } => {
397
+ Drop { unwind : None , .. } => {
407
398
vec ! [ "return" . into( ) ]
408
399
}
409
- DropAndReplace { unwind : Some ( _ ) , .. } | Drop { unwind : Some ( _) , .. } => {
400
+ Drop { unwind : Some ( _) , .. } => {
410
401
vec ! [ "return" . into( ) , "unwind" . into( ) ]
411
402
}
412
403
Assert { cleanup : None , .. } => vec ! [ "" . into( ) ] ,
0 commit comments