Skip to content

Commit 0ef9541

Browse files
committed
turn expensive assert into debug assertion
1 parent 55927af commit 0ef9541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_borrowck/src/polonius/typeck_constraints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn localize_statement_constraint<'tcx>(
9595
//
9696
// When we have a more complete implementation in the future, tested with crater, etc,
9797
// we can relax this to a debug assert instead, or remove it.
98-
assert!(
98+
debug_assert!(
9999
{
100100
let mut lhs_regions = FxHashSet::default();
101101
tcx.for_each_free_region(lhs, |region| {

0 commit comments

Comments
 (0)