We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b8715b + ddc5cf8 commit 5ce062aCopy full SHA for 5ce062a
tests/fail/memleak_rc.stderr
@@ -1,8 +1,8 @@
1
error: memory leaked: ALLOC (Rust heap, SIZE, ALIGN), allocated here:
2
--> RUSTLIB/alloc/src/rc.rs:LL:CC
3
|
4
-LL | Box::leak(Box::new(RcBox { strong: Cell::new(1), weak: Cell::new(1), value }))
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | Box::leak(Box::new(RcInner { strong: Cell::new(1), weak: Cell::new(1), value }))
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7
= note: BACKTRACE:
8
= note: inside `std::rc::Rc::<std::cell::RefCell<std::option::Option<Dummy>>>::new` at RUSTLIB/alloc/src/rc.rs:LL:CC
0 commit comments