Make the randomize feature of rustc_abi additive
This commit is contained in:
@@ -2011,7 +2011,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||
|
||||
// Generate a deterministically-derived seed from the item's path hash
|
||||
// to allow for cross-crate compilation to actually work
|
||||
let mut field_shuffle_seed = self.def_path_hash(did).0.to_smaller_hash();
|
||||
let mut field_shuffle_seed = self.def_path_hash(did).0.to_smaller_hash().as_u64();
|
||||
|
||||
// If the user defined a custom seed for layout randomization, xor the item's
|
||||
// path hash with the user defined seed, this will allowing determinism while
|
||||
|
||||
Reference in New Issue
Block a user