aboutsummaryrefslogtreecommitdiff
path: root/src/x86_64.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-04-21 17:24:33 +0000
committeriximeow <me@iximeow.net>2026-04-21 17:24:33 +0000
commit9598dfc3f069681ebc2145ca87f8ed19bdde3cb7 (patch)
tree8a9c6dce3f77e13470d6e8917f08ef4e96b7d754 /src/x86_64.rs
parent254ef83f988265546efd16d584ab8de162fcb045 (diff)
didn't like how long that was
Diffstat (limited to 'src/x86_64.rs')
-rw-r--r--src/x86_64.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/x86_64.rs b/src/x86_64.rs
index d02fcf0..a04dfb5 100644
--- a/src/x86_64.rs
+++ b/src/x86_64.rs
@@ -1,4 +1,5 @@
use core::fmt;
+use core::mem::size_of;
use core::num::NonZero;
use core::ptr::NonNull;
use nix::sys::mman::{MapFlags, ProtFlags};
@@ -13,7 +14,7 @@ use kvm_bindings::{
pub use kvm_bindings::{kvm_regs, kvm_sregs, kvm_xcrs, kvm_debug_exit_arch};
const _TARGET_IS_64BIT: () = {
- assert!(core::mem::size_of::<u64>() == core::mem::size_of::<usize>(), "asmlinator only supports 64-bit targets");
+ assert!(size_of::<u64>() == size_of::<usize>(), "asmlinator only supports 64-bit targets");
};
// the wanton casting between usize and u64 is justifiable here because TARGET_IS_64BIT above: