From 14ea17858d0c222d24b0a7569d7a7aed933c57b9 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 2 Aug 2022 11:39:40 -0300 Subject: [PATCH] Fail if LifetimeRes is Infer when creating def ids for lifetimes copies --- compiler/rustc_ast_lowering/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 6cf938a242e..a63badc897d 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -1495,7 +1495,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { } } - LifetimeRes::Infer | LifetimeRes::Static | LifetimeRes::Error => {} + LifetimeRes::Static | LifetimeRes::Error => {} res => panic!( "Unexpected lifetime resolution {:?} for {:?} at {:?}",