Skip to content

Commit

Permalink
Upgrade a debug_assert to assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Feb 20, 2024
1 parent cd0fc78 commit a45d892
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/rustc_mir_build/src/build/matches/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a45d892

Please sign in to comment.