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

Commit 6d20ef8

Browse files
committed
perf+
1 parent 006947f commit 6d20ef8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/rustc_middle/src/thir.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use rustc_hir::RangeEnd;
1616
use rustc_index::newtype_index;
1717
use rustc_index::IndexVec;
1818
use rustc_middle::middle::region;
19-
use rustc_middle::mir::interpret::{AllocId, Scalar};
19+
use rustc_middle::mir::interpret::AllocId;
2020
use rustc_middle::mir::{self, BinOp, BorrowKind, FakeReadCause, Mutability, UnOp};
2121
use rustc_middle::ty::adjustment::PointerCoercion;
2222
use rustc_middle::ty::layout::IntegerExt;
@@ -952,10 +952,6 @@ impl<'tcx> PatRangeBoundary<'tcx> {
952952
{
953953
return Some(a.kind().cmp(&b.kind()));
954954
}
955-
(
956-
Finite(mir::Const::Val(mir::ConstValue::Scalar(Scalar::Int(a)), _)),
957-
Finite(mir::Const::Val(mir::ConstValue::Scalar(Scalar::Int(b)), _)),
958-
) if matches!(ty.kind(), ty::Uint(_) | ty::Char) => return Some(a.cmp(&b)),
959955
_ => {}
960956
}
961957

0 commit comments

Comments
 (0)