Skip to content

The content of the lazy static should require RefUnwindSafe #53

Closed
@tomaka

Description

@tomaka

It is possible that a panic happens while a lazy static is being modified, and leave the lazy static in an invalid state.

The user could then catch the unwind and continue to use the object in its invalid state.

That's the reason why the UnwindSafe and RefUnwindSafe traits were invented.

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