@@ -15,6 +15,7 @@ use hir_def::{
15
15
use la_arena:: { Idx , RawIdx } ;
16
16
use rustc_abi:: AddressSpace ;
17
17
use rustc_index:: { IndexSlice , IndexVec } ;
18
+ use rustc_data_structures:: stable_hasher:: Hash64 ;
18
19
19
20
use triomphe:: Arc ;
20
21
@@ -197,7 +198,7 @@ fn layout_of_simd_ty(
197
198
align,
198
199
max_repr_align : None ,
199
200
unadjusted_abi_align : align. abi ,
200
- randomization_seed : 0 ,
201
+ randomization_seed : Hash64 :: ZERO ,
201
202
} ) )
202
203
}
203
204
@@ -314,7 +315,7 @@ pub fn layout_of_ty_query(
314
315
size,
315
316
max_repr_align : None ,
316
317
unadjusted_abi_align : element. align . abi ,
317
- randomization_seed : 0 ,
318
+ randomization_seed : Hash64 :: ZERO ,
318
319
}
319
320
}
320
321
TyKind :: Slice ( element) => {
@@ -328,7 +329,7 @@ pub fn layout_of_ty_query(
328
329
size : Size :: ZERO ,
329
330
max_repr_align : None ,
330
331
unadjusted_abi_align : element. align . abi ,
331
- randomization_seed : 0 ,
332
+ randomization_seed : Hash64 :: ZERO ,
332
333
}
333
334
}
334
335
TyKind :: Str => Layout {
@@ -340,7 +341,7 @@ pub fn layout_of_ty_query(
340
341
size : Size :: ZERO ,
341
342
max_repr_align : None ,
342
343
unadjusted_abi_align : dl. i8_align . abi ,
343
- randomization_seed : 0 ,
344
+ randomization_seed : Hash64 :: ZERO ,
344
345
} ,
345
346
// Potentially-wide pointers.
346
347
TyKind :: Ref ( _, _, pointee) | TyKind :: Raw ( _, pointee) => {
0 commit comments