Don't expect early-bound region to be local in RPITIT well-formedness
This commit is contained in:
parent
037f515caf
commit
d9cd0d4d11
4 changed files with 39 additions and 1 deletions
|
@ -1193,7 +1193,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
let (suitable_region_binding_scope, bound_region) = loop {
|
||||
let def_id = match region.kind() {
|
||||
ty::ReLateParam(fr) => fr.bound_region.get_id()?.as_local()?,
|
||||
ty::ReEarlyParam(ebr) => ebr.def_id.expect_local(),
|
||||
ty::ReEarlyParam(ebr) => ebr.def_id.as_local()?,
|
||||
_ => return None, // not a free region
|
||||
};
|
||||
let scope = self.local_parent(def_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue