summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2022-11-08 20:40:49 +0100
committerGitHub <noreply@github.com>2022-11-08 20:40:49 +0100
commitafaba1997d7295243f18dc8c0dcce5108e2868bd (patch)
tree352295ebfe4e25f8c630be5f2044da1a6df70293 /library/alloc/src
parent3abf329040b5b63beba8f8e15b9b1aa1ec3790bc (diff)
parent17044c1d008e2d7c776e33a1e16d291dabd6520e (diff)
downloadrust-afaba1997d7295243f18dc8c0dcce5108e2868bd.tar.gz
rust-afaba1997d7295243f18dc8c0dcce5108e2868bd.zip
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``
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/collections/btree/node/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/collections/btree/node/tests.rs b/library/alloc/src/collections/btree/node/tests.rs
index aadb0dc9c40..64bce0ff8c0 100644
--- a/library/alloc/src/collections/btree/node/tests.rs
+++ b/library/alloc/src/collections/btree/node/tests.rs
@@ -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);