alloc-stdlib 0.2.2
warning: no edition set: defaulting to the 2015 edition while the latest is 2021 Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s info: for the target platform, using target runner `/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo-miri runner` defined by `target.cfg(all()).runner` specified by `--config` info: for the host platform, using target runner `/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo-miri runner` defined by `target.cfg(all()).runner` specified by `--config` ------------ Nextest run ID d4875806-49d4-4cb0-afe7-7213216ca61b with nextest profile: default-miri Starting 11 tests across 3 binaries FAIL [ 4.173s] alloc-stdlib::lib calloc_pool_test --- STDOUT: alloc-stdlib::lib calloc_pool_test --- running 1 test --- STDERR: alloc-stdlib::lib calloc_pool_test --- error: Undefined Behavior: deallocating while item [Unique for <377611>] is strongly protected --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloc-no-stdlib-2.0.4/src/lib.rs:81:15 | 81 | unsafe {(local_free)(self.raw_data)}; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ deallocating while item [Unique for <377611>] is strongly protected | = help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental = help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information = note: BACKTRACE on thread `calloc_pool_tes`: = note: inside `<alloc_no_stdlib::CallocBackingStore<'_, u8> as std::ops::Drop>::drop` at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloc-no-stdlib-2.0.4/src/lib.rs:81:15: 81:42 = note: inside `std::ptr::drop_in_place::<alloc_no_stdlib::CallocBackingStore<'_, u8>> - shim(Some(alloc_no_stdlib::CallocBackingStore<'_, u8>))` at /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:521:1: 521:56 = note: inside `std::mem::drop::<alloc_no_stdlib::CallocBackingStore<'_, u8>>` at /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/mem/mod.rs:942:24: 942:25 note: inside `calloc_pool_test` --> tests/lib.rs:426:3 | 426 | drop(calloc_global_buffer); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ note: inside closure --> tests/lib.rs:370:22 | 369 | #[test] | ------- in this procedural macro expansion 370 | fn calloc_pool_test() { | ^ = note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace error: aborting due to 1 previous error PASS [ 3.812s] alloc-stdlib::lib global_pool_test PASS [ 5.240s] alloc-stdlib::lib heap_pool_test PASS [ 3.552s] alloc-stdlib::lib stack_pool_free_null PASS [ 3.725s] alloc-stdlib::lib stack_pool_test PASS [ 4.070s] alloc-stdlib::lib uninitialized_calloc_pool_test PASS [ 3.159s] alloc-stdlib::lib uninitialized_global_pool_test PASS [ 3.321s] alloc-stdlib::lib uninitialized_stack_pool_free_null PASS [ 3.219s] alloc-stdlib::lib uninitialized_stack_pool_test PASS [ 1.966s] alloc-stdlib::bin/example tests::heap_test PASS [ 1.940s] alloc-stdlib::bin/example tests::std_test ------------ Summary [ 38.180s] 11 tests run: 10 passed, 1 failed, 0 skipped FAIL [ 4.173s] alloc-stdlib::lib calloc_pool_test error: test run failed warning: no edition set: defaulting to the 2015 edition while the latest is 2021 Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s Doc-tests alloc_stdlib running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s