Skip to content

Vec and Box documentation do not state maximum allocation size guarantee #68593

Closed
@aticu

Description

@aticu

In the documentation for pointer::add, it is mentioned that

Vec and Box ensure they never allocate more than isize::MAX bytes

however, this is not stated in documentation of Vec, the module documentation of vec, the documentation of Box or the module documentation of boxed.

This can cause doubt, whether this statement actually holds true, since the places where one would expect such guarantees to be made (especially the "Guarantees" section of the Vec documentation) does not mention these guarantees.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-collectionsArea: `std::collections`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