diff options
| author | Ralf Jung <post@ralfj.de> | 2022-11-17 09:06:15 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-11-17 09:06:15 +0100 |
| commit | 99f7e9494e137c56fdb34ad76280386ce3b60703 (patch) | |
| tree | b056918a449d3589bc032bbbd04ebf17504c6828 | |
| parent | 9340e5c1b9dee53fd32a18f7bfb54faabfe00b7b (diff) | |
try_normalize_after_erasing_regions: promote an assertion to always run
| -rw-r--r-- | compiler/rustc_traits/src/normalize_erasing_regions.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_traits/src/normalize_erasing_regions.rs b/compiler/rustc_traits/src/normalize_erasing_regions.rs index 2da64d73d34..f1835d317e8 100644 --- a/compiler/rustc_traits/src/normalize_erasing_regions.rs +++ b/compiler/rustc_traits/src/normalize_erasing_regions.rs @@ -34,7 +34,9 @@ fn try_normalize_after_erasing_regions<'tcx, T: TypeFoldable<'tcx> + PartialEq + // We don't care about the `obligations`; they are // always only region relations, and we are about to // erase those anyway: - debug_assert_eq!( + // This has been seen to fail in RL, so making it a non-debug assertion to better catch + // those cases. + assert_eq!( normalized_obligations.iter().find(|p| not_outlives_predicate(p.predicate)), None, ); |
