Skip to content

Commit d7f57d4

Browse files
committed
Limit type size assertions to 64bit systems
1 parent 1e32b97 commit d7f57d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/mir/interpret/value.rs

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ pub enum Scalar<Tag=(), Id=AllocId> {
8787
Ptr(Pointer<Tag, Id>),
8888
}
8989

90+
#[cfg(target_arch = "x86_64")]
9091
static_assert!(SCALAR_SIZE: ::std::mem::size_of::<Scalar>() == 24);
9192

9293
impl<Tag> fmt::Display for Scalar<Tag> {

0 commit comments

Comments
 (0)