about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2024-02-20 16:53:16 +0100
committerNadrieril <nadrieril+git@gmail.com>2024-02-20 16:53:16 +0100
commita45d8925b8af132d2dce4e16bd9599b82ddc5659 (patch)
treeb6948844db84b71d9442cf25ca25a45c1d3b6c21
parentcd0fc78c952b3d2b0589d3d2d2d2096858f43578 (diff)
downloadrust-a45d8925b8af132d2dce4e16bd9599b82ddc5659.tar.gz
rust-a45d8925b8af132d2dce4e16bd9599b82ddc5659.zip
Upgrade a `debug_assert` to `assert`
-rw-r--r--compiler/rustc_mir_build/src/build/matches/mod.rs5
1 files changed, 1 insertions, 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