rust/library/alloc
bors 1388d7a069 Auto merge of #122761 - jwong101:fix/vec-insert, r=workingjubilee,Nilstrieb
fix OOB pointer formed in Vec::index

Move the length check to before using `index` with `ptr::add` to prevent an out of bounds pointer from being formed.

Fixes #122760
2024-03-20 21:37:30 +00:00
..
benches remove redundant imports 2023-12-10 10:56:22 +08:00
src Auto merge of #122761 - jwong101:fix/vec-insert, r=workingjubilee,Nilstrieb 2024-03-20 21:37:30 +00:00
tests Auto merge of #122055 - compiler-errors:stabilize-atb, r=oli-obk 2024-03-19 00:04:09 +00:00
Cargo.toml Rename {collections=>alloc}{tests,benches} 2023-11-26 12:04:56 +00:00