about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src/implied_bounds.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-08-07 22:09:12 +0000
committerMichael Goulet <michael@errs.io>2023-08-08 03:16:04 +0000
commit8dcb8e0759ea48df925968557bd81e37c084e2d0 (patch)
tree913874288d981d5daad2c5c1306bc32b2a612138 /compiler/rustc_ty_utils/src/implied_bounds.rs
parent443c3161dd04f4c1b656a626f9079921bee9c326 (diff)
downloadrust-8dcb8e0759ea48df925968557bd81e37c084e2d0.tar.gz
rust-8dcb8e0759ea48df925968557bd81e37c084e2d0.zip
Unconditionally record lifetime mapping
Diffstat (limited to 'compiler/rustc_ty_utils/src/implied_bounds.rs')
-rw-r--r--compiler/rustc_ty_utils/src/implied_bounds.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/implied_bounds.rs b/compiler/rustc_ty_utils/src/implied_bounds.rs
index 7eb1042d2f8..01fe3a408e8 100644
--- a/compiler/rustc_ty_utils/src/implied_bounds.rs
+++ b/compiler/rustc_ty_utils/src/implied_bounds.rs
@@ -67,7 +67,7 @@ fn assumed_wf_types<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> &'tcx [(Ty<'
                 let mut mapping = FxHashMap::default();
                 let generics = tcx.generics_of(def_id);
                 for &(lifetime, new_early_bound_def_id) in
-                    lifetime_mapping.expect("expected lifetime mapping for RPITIT")
+                    lifetime_mapping
                 {
                     if let Some(rbv::ResolvedArg::LateBound(_, _, def_id)) =
                         tcx.named_bound_var(lifetime.hir_id)