diff options
| author | oli <github35764891676564198441@oli-obk.de> | 2020-11-01 16:57:03 +0000 |
|---|---|---|
| committer | oli <github35764891676564198441@oli-obk.de> | 2020-11-04 10:11:31 +0000 |
| commit | 83edb2f4e40d6acad168497703028c41b5bdb071 (patch) | |
| tree | ec122dc24f56706320c1d3732940c3ab4a31f76c | |
| parent | 6fdbde5f46873f63a8d9652562995a7258a834a4 (diff) | |
| download | rust-83edb2f4e40d6acad168497703028c41b5bdb071.tar.gz rust-83edb2f4e40d6acad168497703028c41b5bdb071.zip | |
s/Scalar::Raw/Scalar::Int
| -rw-r--r-- | clippy_lints/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/consts.rs b/clippy_lints/src/consts.rs index b54d2654579..c8bbc9ce2b0 100644 --- a/clippy_lints/src/consts.rs +++ b/clippy_lints/src/consts.rs @@ -503,7 +503,7 @@ impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> { pub fn miri_to_const(result: &ty::Const<'_>) -> Option<Constant> { use rustc_middle::mir::interpret::{ConstValue}; match result.val { - ty::ConstKind::Value(ConstValue::Scalar(Scalar::Raw(int))) => { + ty::ConstKind::Value(ConstValue::Scalar(Scalar::Int(int))) => { match result.ty.kind() { ty::Bool => Some(Constant::Bool(int == ScalarInt::TRUE)), ty::Uint(_) | ty::Int(_) => Some(Constant::Int(int.assert_bits(int.size()))), |
