diff --git a/src/librustc_mir/util/elaborate_drops.rs b/src/librustc_mir/util/elaborate_drops.rs index aacefeb75136e..8f7b4f8ad7ee5 100644 --- a/src/librustc_mir/util/elaborate_drops.rs +++ b/src/librustc_mir/util/elaborate_drops.rs @@ -472,7 +472,7 @@ where } let (normal, _) = self.drop_ladder(fields, succ, unwind); normal_blocks.push(normal); - } else { + } else if !adt.variants[variant_index].fields.is_empty() { have_otherwise = true; } }