Skip to content

add a NonManaged kind #10869

Closed
Closed
@thestinger

Description

@thestinger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions