Skip to content

Document what we do about unwinding and leaks #22

Open
@KodrAus

Description

@KodrAus

In rust-lang/rust#67290 we added drop guards to collections that will attempt to continue dropping in case dropping an item unwinds. That means collections will either not leak if an item unwinds during drop, or will abort.

In rust-lang/rust#75644 we've looked at preventing leaks if an unwind happens partway through initializing a MaybeUninit (usually for arrays).

We should come up with some concrete guidance on how we want to deal with leaks and unwinding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions