fork/rust

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

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

master
1.0 KiB23 linesraw
1error: memory leaked: ALLOC (Rust heap, size: 4, align: 4), allocated here:
2  --> RUSTLIB/alloc/src/alloc.rs:LL:CC
3   |
4LL |         __rust_alloc(layout.size(), layout.align())
5   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: inside `std::alloc::alloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
8   = note: inside `std::alloc::Global::alloc_impl` at RUSTLIB/alloc/src/alloc.rs:LL:CC
9   = note: inside `<std::alloc::Global as std::alloc::Allocator>::allocate` at RUSTLIB/alloc/src/alloc.rs:LL:CC
10   = note: inside `alloc::alloc::exchange_malloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11   = note: inside `std::boxed::Box::<i32>::new` at RUSTLIB/alloc/src/boxed.rs:LL:CC
12note: inside `main`
13  --> $DIR/memleak.rs:LL:CC
14   |
15LL |     std::mem::forget(Box::new(42));
16   |                      ^^^^^^^^^^^^
17
18note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
19
20note: the evaluated program leaked memory, pass `-Zmiri-ignore-leaks` to disable this check
21
22error: aborting due to previous error
23