about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-06-03 17:45:09 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2022-06-03 16:46:19 +0000
commitfc1df4ff170ec137ecab7d7aa7f4dc894bb17449 (patch)
tree4069f5bb6a9d28342893fe91c47f49d0833bf4ab /compiler/rustc_middle/src
parentfc2abe6952a00c21a2bb77ad8bd86dcb6e6abea2 (diff)
downloadrust-fc1df4ff170ec137ecab7d7aa7f4dc894bb17449.tar.gz
rust-fc1df4ff170ec137ecab7d7aa7f4dc894bb17449.zip
Use serde_json for target spec json
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/mir/interpret/value.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/value.rs b/compiler/rustc_middle/src/mir/interpret/value.rs
index d00dae85367..146ae45e468 100644
--- a/compiler/rustc_middle/src/mir/interpret/value.rs
+++ b/compiler/rustc_middle/src/mir/interpret/value.rs
@@ -315,7 +315,7 @@ impl<Tag> Scalar<Tag> {
                 ScalarSizeMismatch { target_size: target_size.bytes(), data_size: size.bytes() }
             })?),
             Scalar::Ptr(ptr, sz) => {
-                if target_size.bytes() != sz.into() {
+                if target_size.bytes() != u64::from(sz) {
                     return Err(ScalarSizeMismatch {
                         target_size: target_size.bytes(),
                         data_size: sz.into(),