about summary refs log tree commit diff
path: root/src/librustc/mir/interpret/pointer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc/mir/interpret/pointer.rs')
-rw-r--r--src/librustc/mir/interpret/pointer.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/mir/interpret/pointer.rs b/src/librustc/mir/interpret/pointer.rs
index a046825f088..498c0b5b917 100644
--- a/src/librustc/mir/interpret/pointer.rs
+++ b/src/librustc/mir/interpret/pointer.rs
@@ -76,6 +76,8 @@ pub struct Pointer<Tag=(),Id=AllocId> {
     pub tag: Tag,
 }
 
+static_assert!(POINTER_SIZE: ::std::mem::size_of::<Pointer>() == 16);
+
 /// Produces a `Pointer` which points to the beginning of the Allocation
 impl From<AllocId> for Pointer {
     #[inline(always)]