Skip to content

Commit 99f7e94

Browse files
committed
try_normalize_after_erasing_regions: promote an assertion to always run
1 parent 9340e5c commit 99f7e94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_traits/src/normalize_erasing_regions.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ fn try_normalize_after_erasing_regions<'tcx, T: TypeFoldable<'tcx> + PartialEq +
3434
// We don't care about the `obligations`; they are
3535
// always only region relations, and we are about to
3636
// erase those anyway:
37-
debug_assert_eq!(
37+
// This has been seen to fail in RL, so making it a non-debug assertion to better catch
38+
// those cases.
39+
assert_eq!(
3840
normalized_obligations.iter().find(|p| not_outlives_predicate(p.predicate)),
3941
None,
4042
);

0 commit comments

Comments
 (0)