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

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