Skip to content

Commit 2b6e698

Browse files
committed
add patch to disable layout-dependent test
1 parent 9b1b61f commit 2b6e698

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

rust-src.diff

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/library/alloc/src/collections/btree/node/tests.rs b/library/alloc/src/collections/btree/node/tests.rs
2+
index aadb0dc9c40..64bce0ff8c0 100644
3+
--- a/library/alloc/src/collections/btree/node/tests.rs
4+
+++ b/library/alloc/src/collections/btree/node/tests.rs
5+
@@ -94,6 +94,7 @@ fn test_partial_eq() {
6+
7+
#[test]
8+
#[cfg(target_arch = "x86_64")]
9+
+#[cfg_attr(miri, ignore)] // We'd like to run Miri with layout randomization
10+
fn test_sizes() {
11+
assert_eq!(core::mem::size_of::<LeafNode<(), ()>>(), 16);
12+
assert_eq!(core::mem::size_of::<LeafNode<i64, i64>>(), 16 + CAPACITY * 2 * 8);

0 commit comments

Comments
 (0)