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

Commit 83edb2f

Browse files
committed
s/Scalar::Raw/Scalar::Int
1 parent 6fdbde5 commit 83edb2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> {
503503
pub fn miri_to_const(result: &ty::Const<'_>) -> Option<Constant> {
504504
use rustc_middle::mir::interpret::{ConstValue};
505505
match result.val {
506-
ty::ConstKind::Value(ConstValue::Scalar(Scalar::Raw(int))) => {
506+
ty::ConstKind::Value(ConstValue::Scalar(Scalar::Int(int))) => {
507507
match result.ty.kind() {
508508
ty::Bool => Some(Constant::Bool(int == ScalarInt::TRUE)),
509509
ty::Uint(_) | ty::Int(_) => Some(Constant::Int(int.assert_bits(int.size()))),

0 commit comments

Comments
 (0)