Skip to content

UnsafePinned should provide the same guarantee layouts as UnsafeCell #156163

@jacobsa

Description

@jacobsa

As discussed with @RalfJung here, it seems like the documentation for UnsafePinned<T> should guarantee the same layout as T, like UnsafeCell does.

I didn't mention it in that comment, but I think this also makes sense given that the documentation says that UnsafePinned is intended to subsume UnsafeCell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions