CI: run test suite in Miri (#456)

This commit is contained in:
Ralf Jung
2020-12-29 22:54:48 +01:00
committed by GitHub
parent ed71a7beb3
commit 27a0f9ca6e
4 changed files with 24 additions and 3 deletions
+2
View File
@@ -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;