about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-05-25 17:30:23 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-05-25 17:40:46 +0000
commit844c1cc5fec38f691a2ffb53ef3366f25cf7b02b (patch)
tree0994331e0ebf6a9fd5c3e94f3e7bf22615381b2f /compiler/rustc_const_eval
parentd300bffa4f0036e9138ef752610d08fc63f87a77 (diff)
downloadrust-844c1cc5fec38f691a2ffb53ef3366f25cf7b02b.tar.gz
rust-844c1cc5fec38f691a2ffb53ef3366f25cf7b02b.zip
Remove DesugaringKind::Replace.
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/interpret/terminator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/terminator.rs b/compiler/rustc_const_eval/src/interpret/terminator.rs
index df387920010..586e8f063ee 100644
--- a/compiler/rustc_const_eval/src/interpret/terminator.rs
+++ b/compiler/rustc_const_eval/src/interpret/terminator.rs
@@ -114,7 +114,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
                 }
             }
 
-            Drop { place, target, unwind } => {
+            Drop { place, target, unwind, replace: _ } => {
                 let frame = self.frame();
                 let ty = place.ty(&frame.body.local_decls, *self.tcx).ty;
                 let ty = self.subst_from_frame_and_normalize_erasing_regions(frame, ty)?;