File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ use rand::SeedableRng;
12
12
13
13
use rustc_ast:: ast:: Mutability ;
14
14
use rustc_data_structures:: fx:: FxHashMap ;
15
+ #[ allow( unused) ]
16
+ use rustc_data_structures:: static_assert_size;
15
17
use rustc_middle:: {
16
18
mir,
17
19
ty:: {
@@ -128,6 +130,13 @@ pub struct Tag {
128
130
pub sb : SbTag ,
129
131
}
130
132
133
+ #[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
134
+ static_assert_size ! ( Pointer <Tag >, 24 ) ;
135
+ #[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
136
+ static_assert_size ! ( Pointer <Option <Tag >>, 24 ) ;
137
+ #[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
138
+ static_assert_size ! ( ScalarMaybeUninit <Tag >, 32 ) ;
139
+
131
140
impl Provenance for Tag {
132
141
/// We use absolute addresses in the `offset` of a `Pointer<Tag>`.
133
142
const OFFSET_IS_ADDR : bool = true ;
You can’t perform that action at this time.
0 commit comments