mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
4d08c33fc1
alloc: Document panics when allocations will exceed max Document panics in `String` and `Vec` due to capacity overflowing `isize::MAX`. Correct outdated claims of `usize::MAX` limit. Fixes https://github.com/rust-lang/rust/issues/148598. Ping `@lolbinarycat`