fork/rust

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

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

master
1.2 KiB24 linesraw
1error: memory leaked: ALLOC (Rust heap, size: 16, 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::<std::rc::RcBox<std::cell::RefCell<std::option::Option<Dummy>>>>::new` at RUSTLIB/alloc/src/boxed.rs:LL:CC
12   = note: inside `std::rc::Rc::<std::cell::RefCell<std::option::Option<Dummy>>>::new` at RUSTLIB/alloc/src/rc.rs:LL:CC
13note: inside `main`
14  --> $DIR/memleak_rc.rs:LL:CC
15   |
16LL |     let x = Dummy(Rc::new(RefCell::new(None)));
17   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
20
21note: the evaluated program leaked memory, pass `-Zmiri-ignore-leaks` to disable this check
22
23error: aborting due to previous error
24