From a45d8925b8af132d2dce4e16bd9599b82ddc5659 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 20 Feb 2024 16:53:16 +0100 Subject: [PATCH] Upgrade a `debug_assert` to `assert` --- compiler/rustc_mir_build/src/build/matches/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/rustc_mir_build/src/build/matches/mod.rs b/compiler/rustc_mir_build/src/build/matches/mod.rs index 2585e731ab0..81a1d3acb06 100644 --- a/compiler/rustc_mir_build/src/build/matches/mod.rs +++ b/compiler/rustc_mir_build/src/build/matches/mod.rs @@ -1279,10 +1279,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { ) -> BasicBlock { assert!(candidate.otherwise_block.is_none()); assert!(candidate.pre_binding_block.is_none()); - debug_assert!( - candidate.subcandidates.is_empty(), - "subcandidates should be empty in select_matched_candidates", - ); + assert!(candidate.subcandidates.is_empty()); if let Some(fake_borrows) = fake_borrows { // Insert a borrows of prefixes of places that are bound and are