Skip to content

Unsafe audit #1

@matklad

Description

@matklad

This crate uses unsafe quite a bit for both sync and unsync variants of OnceCell. I feel rather confident about unsync usages of unsafe: the implementation is the same as in the lazycell. However the sync version, which is inspired by lazy_static, has quite a bit more of my own invention.

It would be cool if knowledgeable people in the area reviewed the code for safety issues!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions