We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae18edf commit 64c1db2Copy full SHA for 64c1db2
alloc/Cargo.toml
@@ -52,4 +52,5 @@ check-cfg = [
52
'cfg(no_global_oom_handling)',
53
'cfg(no_rc)',
54
'cfg(no_sync)',
55
+ 'cfg(randomized_layouts)',
56
]
alloc/src/collections/btree/node/tests.rs
@@ -90,7 +90,7 @@ fn test_partial_eq() {
90
91
#[test]
92
#[cfg(target_arch = "x86_64")]
93
-#[cfg_attr(miri, ignore)] // We'd like to run Miri with layout randomization
+#[cfg_attr(any(miri, randomized_layouts), ignore)] // We'd like to run Miri with layout randomization
94
fn test_sizes() {
95
assert_eq!(core::mem::size_of::<LeafNode<(), ()>>(), 16);
96
assert_eq!(core::mem::size_of::<LeafNode<i64, i64>>(), 16 + CAPACITY * 2 * 8);
0 commit comments