Be consistent about linting singletons
This commit is contained in:
parent
d1a50ffb7c
commit
c89d439bb5
3 changed files with 4 additions and 20 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue