about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-05-27 13:38:31 +0200
committerGitHub <noreply@github.com>2023-05-27 13:38:31 +0200
commitddb5424569b1d598adf9010cece8d49968c357e6 (patch)
tree4efdcfc21f8555404bad0293057723e21e8c0412 /compiler/rustc_codegen_ssa/src
parent859068c628cb14622c58aa5d05959530b05ffee1 (diff)
parent844c1cc5fec38f691a2ffb53ef3366f25cf7b02b (diff)
downloadrust-ddb5424569b1d598adf9010cece8d49968c357e6.tar.gz
rust-ddb5424569b1d598adf9010cece8d49968c357e6.zip
Rollup merge of #111952 - cjgillot:drop-replace, r=WaffleLapkin
Remove DesugaringKind::Replace.

A simple boolean flag is enough.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/block.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs
index d516ac4ebb7..3f0b64b1103 100644
--- a/compiler/rustc_codegen_ssa/src/mir/block.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/block.rs
@@ -1256,7 +1256,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
                 MergingSucc::False
             }
 
-            mir::TerminatorKind::Drop { place, target, unwind } => {
+            mir::TerminatorKind::Drop { place, target, unwind, replace: _ } => {
                 self.codegen_drop_terminator(helper, bx, place, target, unwind, mergeable_succ())
             }