mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
disable btree size tests on Miri
This commit is contained in:
parent
9b735a7132
commit
17044c1d00
@ -94,6 +94,7 @@ fn test_partial_eq() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
|
#[cfg_attr(miri, ignore)] // We'd like to run Miri with layout randomization
|
||||||
fn test_sizes() {
|
fn test_sizes() {
|
||||||
assert_eq!(core::mem::size_of::<LeafNode<(), ()>>(), 16);
|
assert_eq!(core::mem::size_of::<LeafNode<(), ()>>(), 16);
|
||||||
assert_eq!(core::mem::size_of::<LeafNode<i64, i64>>(), 16 + CAPACITY * 2 * 8);
|
assert_eq!(core::mem::size_of::<LeafNode<i64, i64>>(), 16 + CAPACITY * 2 * 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user