Open
Description
Today, set_len
has a debug_assert!
on the length being legal:
rust/library/alloc/src/vec/mod.rs
Lines 1950 to 1956 in 855e0fe
It would be nice, assuming the compilation time hit is tolerable, to upgrade that to a UB-check in order to better catch people making over-long vectors.