mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Upgrade a debug_assert to assert
This commit is contained in:
@@ -1279,10 +1279,7 @@ fn select_matched_candidate(
|
||||
) -> 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
|
||||
|
||||
Reference in New Issue
Block a user