Skip to content

[Docs] box doesn't contain documentation regarding ZSTs #69283

Open
@naim94a

Description

@naim94a

I've recently learned that Box::new on a ZST returns the ZSTs alignment. I assumed that the return value didn't really matter since it's a ZST.
This should be added to Box's documentation (Box::from_raw should also be aligned then, right?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions