Simplify via map_rpit_lifetime_to_fn_lifetime
This commit is contained in:
parent
67703b9161
commit
ef2a611803
2 changed files with 21 additions and 145 deletions
|
@ -1995,7 +1995,16 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
),
|
||||
);
|
||||
}
|
||||
_ => bug!(),
|
||||
Some(resolve_bound_vars::ResolvedArg::Error(guar)) => {
|
||||
return ty::Region::new_error(self, guar);
|
||||
}
|
||||
_ => {
|
||||
return ty::Region::new_error_with_message(
|
||||
self,
|
||||
lifetime.ident.span,
|
||||
"cannot resolve lifetime",
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue