fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.4 KiB24 linesraw
1error: Undefined Behavior: deallocating ALLOC, which is stack variable memory, using Rust heap deallocation operation
2  --> RUSTLIB/alloc/src/alloc.rs:LL:CC
3   |
4LL |     unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
5   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ deallocating ALLOC, which is stack variable memory, using Rust heap deallocation operation
6   |
7   = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8   = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
9   = note: BACKTRACE:
10   = note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11   = note: inside `<std::alloc::Global as std::alloc::Allocator>::deallocate` at RUSTLIB/alloc/src/alloc.rs:LL:CC
12   = note: inside `<std::boxed::Box<i32> as std::ops::Drop>::drop` at RUSTLIB/alloc/src/boxed.rs:LL:CC
13   = note: inside `std::ptr::drop_in_place::<std::boxed::Box<i32>> - shim(Some(std::boxed::Box<i32>))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
14   = note: inside `std::mem::drop::<std::boxed::Box<i32>>` at RUSTLIB/core/src/mem/mod.rs:LL:CC
15note: inside `main`
16  --> $DIR/stack_free.rs:LL:CC
17   |
18LL |     drop(bad_box);
19   |     ^^^^^^^^^^^^^
20
21note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
22
23error: aborting due to previous error
24