Skip to content

Commit a45d892

Browse files
committed
Upgrade a debug_assert to assert
1 parent cd0fc78 commit a45d892

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_mir_build/src/build/matches

1 file changed

+1
-4
lines changed

compiler/rustc_mir_build/src/build/matches/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1279,10 +1279,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
12791279
) -> BasicBlock {
12801280
assert!(candidate.otherwise_block.is_none());
12811281
assert!(candidate.pre_binding_block.is_none());
1282-
debug_assert!(
1283-
candidate.subcandidates.is_empty(),
1284-
"subcandidates should be empty in select_matched_candidates",
1285-
);
1282+
assert!(candidate.subcandidates.is_empty());
12861283

12871284
if let Some(fake_borrows) = fake_borrows {
12881285
// Insert a borrows of prefixes of places that are bound and are

0 commit comments

Comments
 (0)