Skip to content

Overflow at isize::MAX, not usize #123

@sebastianv89

Description

@sebastianv89

The documentation of many methods reads: "Panics if the new capacity overflows usize."

However it seems that the source of such panic is the internal Vec. Its documentation reads: "Panics if the new capacity exceeds isize::MAX bytes."

(For example, compare https://docs.rs/slab/latest/slab/struct.Slab.html#method.reserve with https://doc.rust-lang.org/alloc/vec/struct.Vec.html#method.reserve or https://doc.rust-lang.org/std/vec/struct.Vec.html#method.reserve.)

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