Skip to content

Commit e25d8e8

Browse files
committed
perf+
1 parent 7390e38 commit e25d8e8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/rustc_middle/src/thir.rs

+1-5
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;
@@ -979,10 +979,6 @@ impl<'tcx> PatRangeBoundary<'tcx> {
979979
{
980980
return Some(a.kind().cmp(&b.kind()));
981981
}
982-
(
983-
Finite { value: mir::Const::Val(mir::ConstValue::Scalar(Scalar::Int(a)), _) },
984-
Finite { value: mir::Const::Val(mir::ConstValue::Scalar(Scalar::Int(b)), _) },
985-
) if matches!(ty.kind(), ty::Uint(_) | ty::Char) => return Some(a.cmp(&b)),
986982
_ => {}
987983
}
988984

0 commit comments

Comments
 (0)