Fail if LifetimeRes is Infer when creating def ids for lifetimes copies
This commit is contained in:
parent
c390bda356
commit
14ea17858d
1 changed files with 1 additions and 1 deletions
|
@ -1495,7 +1495,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LifetimeRes::Infer | LifetimeRes::Static | LifetimeRes::Error => {}
|
LifetimeRes::Static | LifetimeRes::Error => {}
|
||||||
|
|
||||||
res => panic!(
|
res => panic!(
|
||||||
"Unexpected lifetime resolution {:?} for {:?} at {:?}",
|
"Unexpected lifetime resolution {:?} for {:?} at {:?}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue