rust/library/alloc
bors 5bd1ec3283 Auto merge of #83706 - a1phyr:fix_vec_layout_calculation, r=JohnTitor
Fix a layout possible miscalculation in `alloc::RawVec`

A layout miscalculation could happen in `RawVec` when used with a type whose size isn't a multiple of its alignment. I don't know if such type can exist in Rust, but the Layout API provides ways to manipulate such types. Anyway, it is better to calculate memory size in a consistent way.
2022-02-22 20:50:38 +00:00
..
benches update vec::retain benchmarks 2021-12-04 16:20:35 +01:00
src Auto merge of #83706 - a1phyr:fix_vec_layout_calculation, r=JohnTitor 2022-02-22 20:50:38 +00:00
tests Add {floor,ceil}_char_boundary methods to str 2022-02-07 13:34:08 -05:00
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00