Fail if LifetimeRes is Infer when creating def ids for lifetimes copies

This commit is contained in:
Santiago Pastorino 2022-08-02 11:39:40 -03:00
parent c390bda356
commit 14ea17858d
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -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 {:?}",