1
Fork 0

Remove MaybeInfiniteInt::JustAfterMax

It was inherited from before half-open ranges, but it doesn't pull its
weight anymore. We lose a tiny bit of diagnostic precision.
This commit is contained in:
Nadrieril 2024-03-13 14:17:11 +01:00
parent 9ce37dc729
commit c4236785c7
4 changed files with 18 additions and 21 deletions

View file

@ -710,7 +710,7 @@ impl<'p, 'tcx: 'p> RustcMatchCheckCtxt<'p, 'tcx> {
None => PatRangeBoundary::PosInfinity,
}
}
JustAfterMax | PosInfinity => PatRangeBoundary::PosInfinity,
PosInfinity => PatRangeBoundary::PosInfinity,
}
}