Skip to content

Accepted risk: Immutable types assumed not to contain UnsafeCells #1358

@joshlf

Description

@joshlf

As part of #1155, we need guarantees that certain standard library types such as Box and NonZeroXxx and even built-ins such as usize do not contain UnsafeCells. Per rust-lang/unsafe-code-guidelines#492, it is difficult to get this guarantee, but it's also incredibly obvious that it's true and would be absurd to change (and certainly absurd in a way that doesn't just result in these types containing UnsafeCells, but in a way that permits interior mutation to be exercised, which is really what Immutable cares about).

This issue tracks that this is an accepted risk, and we're going to proceed with 0.8 anyway.

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