Skip to content

Allow UnsafeCells when transmuting mutable references? #686

Closed

Description

Once we land #251, we'll have the ability to granularly require or permit UnsafeCells in different APIs. Currently the plan is to require UnsafeCells whenever references are being transmuted, but maybe that's not necessary when the references are mutable, as that disallows interior mutation anyway? This may depend on which aliasing model we choose (stacked borrows, tree borrows, etc), as some may disallow this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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