Upgrade a debug_assert
to assert
This commit is contained in:
parent
cd0fc78c95
commit
a45d8925b8
1 changed files with 1 additions and 4 deletions
|
@ -1279,10 +1279,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||||
) -> BasicBlock {
|
) -> BasicBlock {
|
||||||
assert!(candidate.otherwise_block.is_none());
|
assert!(candidate.otherwise_block.is_none());
|
||||||
assert!(candidate.pre_binding_block.is_none());
|
assert!(candidate.pre_binding_block.is_none());
|
||||||
debug_assert!(
|
assert!(candidate.subcandidates.is_empty());
|
||||||
candidate.subcandidates.is_empty(),
|
|
||||||
"subcandidates should be empty in select_matched_candidates",
|
|
||||||
);
|
|
||||||
|
|
||||||
if let Some(fake_borrows) = fake_borrows {
|
if let Some(fake_borrows) = fake_borrows {
|
||||||
// Insert a borrows of prefixes of places that are bound and are
|
// Insert a borrows of prefixes of places that are bound and are
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue