Skip to content

Commit 5619fd5

Browse files
committed
Remove DropAndReplace terminator
PR 107844 made DropAndReplace unused, let's remove it completely from the codebase.
1 parent 64b54ef commit 5619fd5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,6 @@ fn check_terminator<'tcx>(
299299
| TerminatorKind::Unreachable => Ok(()),
300300

301301
TerminatorKind::Drop { place, .. } => check_place(tcx, *place, span, body),
302-
TerminatorKind::DropAndReplace { place, value, .. } => {
303-
check_place(tcx, *place, span, body)?;
304-
check_operand(tcx, value, span, body)
305-
},
306302

307303
TerminatorKind::SwitchInt { discr, targets: _ } => check_operand(tcx, discr, span, body),
308304

0 commit comments

Comments
 (0)