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``
This commit is contained in:
commit
afaba1997d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue