rust/library/alloc/src
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
..
alloc Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
collections Collections: improve the documentation of drain members 2022-02-19 00:55:31 +01:00
raw_vec Add a unit test for zero-sized types in RawVec. 2021-11-26 19:30:45 +11:00
rc Re-stabilize Weak::as_ptr &friends for unsized T 2021-01-06 19:30:22 -05:00
sync Rollup merge of #80764 - CAD97:weak-unsized-as-ptr-again, r=RalfJung 2021-01-16 17:29:56 +00:00
vec Collections: improve the documentation of drain members 2022-02-19 00:55:31 +01:00
alloc.rs Mark __rgl_oom and __rd_oom as "C-unwind" 2022-02-05 20:58:04 +00:00
borrow.rs docs: fix typo 2021-12-18 11:21:58 +01:00
boxed.rs Move {core,std}::stream::Stream to {core,std}::async_iter::AsyncIterator. 2022-02-03 21:03:06 +08:00
fmt.rs Fix typo in std::fmt docs 2022-02-09 11:26:10 +01:00
lib.rs Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc 2022-02-18 16:23:32 +01:00
macros.rs Add diagnostic items for macros 2022-01-06 14:59:33 +00:00
raw_vec.rs Fix typo 2022-02-12 12:31:33 +01:00
rc.rs Add tracking issue and impl for Rc. 2022-02-03 10:40:31 +00:00
slice.rs Stabilise inherent_ascii_escape (FCP in #77174) 2022-02-12 13:21:59 -05:00
str.rs Use spare_capacity_mut instead of invalid unchecked indexing 2021-12-08 17:58:57 -05:00
string.rs Collections: improve the documentation of drain members 2022-02-19 00:55:31 +01:00
sync.rs Add tracking issue and impl for Rc. 2022-02-03 10:40:31 +00:00
task.rs Document From implementations for Waker and RawWaker 2021-04-22 14:16:33 -07:00
tests.rs Fix alloc::test::test_show 2021-04-21 15:45:41 +02:00