1
Fork 0

Be consistent about linting singletons

This commit is contained in:
Nadrieril 2020-10-22 19:25:55 +01:00
parent d1a50ffb7c
commit c89d439bb5
3 changed files with 4 additions and 20 deletions

View file

@ -161,7 +161,7 @@ impl IntRange {
// 2 -------- // 2 -------
let (lo, hi) = self.boundaries();
let (other_lo, other_hi) = other.boundaries();
lo == other_hi || hi == other_lo
(lo == other_hi || hi == other_lo) && !self.is_singleton() && !other.is_singleton()
}
fn to_pat<'tcx>(&self, tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Pat<'tcx> {