1
Fork 0

Suppress unnecessary outlives

This commit is contained in:
Michael Goulet 2023-07-31 18:23:12 +00:00
parent 9295817bad
commit 1c35634efe
4 changed files with 11 additions and 22 deletions

View file

@ -942,6 +942,10 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
generic_ty: Ty<'tcx>,
min: ty::Region<'tcx>,
) -> bool {
if let ty::ReError(_) = *min {
return true;
}
match bound {
VerifyBound::IfEq(verify_if_eq_b) => {
let verify_if_eq_b = var_values.normalize(self.region_rels.tcx, *verify_if_eq_b);