Skip to content

Commit afaba19

Browse files
Rollup merge of #104093 - RalfJung:test-sizes, r=thomcc
disable btree size tests on Miri Seems fine not to run these in Miri, they can't have UB anyway. And this lets us do layout randomization in Miri. r? ``@thomcc``
2 parents 3abf329 + 17044c1 commit afaba19

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)