about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-22 20:50:38 +0000
committerbors <bors@rust-lang.org>2022-02-22 20:50:38 +0000
commit5bd1ec3283874b97b27da4539b2950fbd01c4b0e (patch)
tree5642d3a3c816dfd39caf9fdd11d3274a8bbe4ba8 /library/std/src
parent68369a041cea809a87e5bd80701da90e0e0a4799 (diff)
parent5376317c7f39c41250f354d6c35858bd383d1970 (diff)
downloadrust-5bd1ec3283874b97b27da4539b2950fbd01c4b0e.tar.gz
rust-5bd1ec3283874b97b27da4539b2950fbd01c4b0e.zip
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.
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions