when -Zrandomize-layout is enabled disable alloc test testing interna… · patricklam/verify-rust-std@64c1db2 (original) (raw)

File tree

2 files changed

lines changed

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -52,4 +52,5 @@ check-cfg = [
52 52 'cfg(no_global_oom_handling)',
53 53 'cfg(no_rc)',
54 54 'cfg(no_sync)',
55 +'cfg(randomized_layouts)',
55 56 ]
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ fn test_partial_eq() {
90 90
91 91 #[test]
92 92 #[cfg(target_arch = "x86_64")]
93 -#[cfg_attr(miri, ignore)] // We'd like to run Miri with layout randomization
93 +#[cfg_attr(any(miri, randomized_layouts), ignore)] // We'd like to run Miri with layout randomization
94 94 fn test_sizes() {
95 95 assert_eq!(core::mem::size_of::<LeafNode<(), ()>>(), 16);
96 96 assert_eq!(core::mem::size_of::<LeafNode<i64, i64>>(), 16 + CAPACITY * 2 * 8);