add a NonManaged kind #10869
Labels
A-type-system
Area: Type system
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
This is needed to implemented weak pointers for reference counted pointers without adding explicit support in the compiler. They unable to allocate/deallocate with
~T
because the object and allocation may have to be separately freed.A dead simple implementation: https://github.com/thestinger/rust-core/blob/master/core/weak.rs
The text was updated successfully, but these errors were encountered: