1
Fork 0

Simplify via map_rpit_lifetime_to_fn_lifetime

This commit is contained in:
Michael Goulet 2023-08-07 23:54:04 +00:00
parent 67703b9161
commit ef2a611803
2 changed files with 21 additions and 145 deletions

View file

@ -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",
);
}
}
}
}