Skip to content

Commit 17044c1

Browse files
committed
disable btree size tests on Miri
1 parent 9b735a7 commit 17044c1

File tree

1 file changed

+1
-0
lines changed
  • library/alloc/src/collections/btree/node

1 file changed

+1
-0
lines changed

library/alloc/src/collections/btree/node/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ fn test_partial_eq() {
9494

9595
#[test]
9696
#[cfg(target_arch = "x86_64")]
97+
#[cfg_attr(miri, ignore)] // We'd like to run Miri with layout randomization
9798
fn test_sizes() {
9899
assert_eq!(core::mem::size_of::<LeafNode<(), ()>>(), 16);
99100
assert_eq!(core::mem::size_of::<LeafNode<i64, i64>>(), 16 + CAPACITY * 2 * 8);

0 commit comments

Comments
 (0)