Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f3ef3e2

Browse files
committed
remove redundant is_integral
1 parent bb218fa commit f3ef3e2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/rustc_mir_build/src/thir/pattern/deconstruct_pat.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ pub(crate) struct IntRange {
103103
}
104104

105105
impl IntRange {
106-
#[inline]
107-
fn is_integral(ty: Ty<'_>) -> bool {
108-
matches!(ty.kind(), ty::Char | ty::Int(_) | ty::Uint(_) | ty::Bool)
109-
}
110-
111106
fn is_singleton(&self) -> bool {
112107
self.range.start() == self.range.end()
113108
}

0 commit comments

Comments
 (0)