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