Skip to content

AtomicOption is not pointer sized #7271

Closed
@brson

Description

@brson

AtomicOption is an atomic, nullable unique pointer, but because it has a dtor it does not have pointer size:

rust: ~"size_of::<AtomicOption<()>>(): 16"
rust: ~"size_of::<uint>(): 8"

It would be very convenient if this type was freely castable to pointer-size types.

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