Skip to content

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

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.

Activity

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

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-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions