mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
5bd1ec3283
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. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |