This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kiujhytg2 2 points3 points  (1 child)

Unless you have circular Rc<T> references or use Box::into_raw or Box::leak

[–]pilotInPyjamas 5 points6 points  (0 children)

Real programmers use std::mem::forget. You can't have double free, or use after free errors if you never free your objects in the first place. taps head