diff options
author | Haibo Huang <hhb@google.com> | 2021-01-11 19:30:56 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2021-01-11 19:30:56 -0800 |
commit | 49f37ac424d7df1f8ee1989d8f3b5ceb6b6a9ea0 (patch) | |
tree | 9fee875946571b5e3156284b964bf3617ced0ca1 /tests/test_bytes_odd_alloc.rs | |
parent | 2b95745e709cfb52a81074e4882d0a2cbaaea2ed (diff) | |
download | bytes-49f37ac424d7df1f8ee1989d8f3b5ceb6b6a9ea0.tar.gz |
Upgrade rust/crates/bytes to 1.0.1
Test: make
Change-Id: Ie9751d0251a3844858395badc8546303dcddeb24
Diffstat (limited to 'tests/test_bytes_odd_alloc.rs')
-rw-r--r-- | tests/test_bytes_odd_alloc.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_bytes_odd_alloc.rs b/tests/test_bytes_odd_alloc.rs index 4ce424b..04ba7c2 100644 --- a/tests/test_bytes_odd_alloc.rs +++ b/tests/test_bytes_odd_alloc.rs @@ -1,6 +1,8 @@ //! Test using `Bytes` with an allocator that hands out "odd" pointers for //! vectors (pointers where the LSB is set). +#![cfg(not(miri))] // Miri does not support custom allocators (also, Miri is "odd" by default with 50% chance) + use std::alloc::{GlobalAlloc, Layout, System}; use std::ptr; |