We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9340e5c commit 99f7e94Copy full SHA for 99f7e94
1 file changed
compiler/rustc_traits/src/normalize_erasing_regions.rs
@@ -34,7 +34,9 @@ fn try_normalize_after_erasing_regions<'tcx, T: TypeFoldable<'tcx> + PartialEq +
34
// We don't care about the `obligations`; they are
35
// always only region relations, and we are about to
36
// erase those anyway:
37
- debug_assert_eq!(
+ // This has been seen to fail in RL, so making it a non-debug assertion to better catch
38
+ // those cases.
39
+ assert_eq!(
40
normalized_obligations.iter().find(|p| not_outlives_predicate(p.predicate)),
41
None,
42
);
0 commit comments