]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/collections/btree/node/tests.rs
disable btree size tests on Miri
[rust.git] / library / alloc / src / collections / btree / node / tests.rs
index aadb0dc9c40d9304a68176eaea9d60f9a12bf433..64bce0ff8c0483f805179f10d61e69f7b52feba2 100644 (file)
@@ -94,6 +94,7 @@ fn test_partial_eq() {
 
 #[test]
 #[cfg(target_arch = "x86_64")]
+#[cfg_attr(miri, ignore)] // We'd like to run Miri with layout randomization
 fn test_sizes() {
     assert_eq!(core::mem::size_of::<LeafNode<(), ()>>(), 16);
     assert_eq!(core::mem::size_of::<LeafNode<i64, i64>>(), 16 + CAPACITY * 2 * 8);