Fail if LifetimeRes is Infer when creating def ids for lifetimes copies
This commit is contained in:
parent
c390bda356
commit
14ea17858d
@ -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 {:?}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user