rust/library/alloc/src
Matthias Krüger 9c1aa12ff1
Rollup merge of #90723 - asquared31415:box_docs, r=jyn514
Better document `Box` and `alloc::alloc::box_free` connection

The internal `alloc::alloc::box_free` function requires that its signature matches the `owned_box` struct's declaration, but previously that connection was only documented on the `box_free` function.

This PR makes the documentation two-way to help anyone making theoretical changes to `Box` to see the connection, since changes are more likely to originate from `Box`.
2021-11-09 19:00:46 +01:00
..
alloc Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
collections Rollup merge of #89786 - jkugelman:must-use-len-and-is_empty, r=joshtriplett 2021-10-31 13:20:05 +01:00
raw_vec Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01: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 Rollup merge of #89899 - jkugelman:must-use-alloc, r=joshtriplett 2021-10-31 00:33:24 +02:00
alloc.rs Add #[must_use] to alloc functions that would leak memory 2021-10-30 22:19:07 -04:00
borrow.rs Const Deref 2021-09-15 03:06:53 +00:00
boxed.rs document Box and box_free connection 2021-11-09 07:13:53 -05:00
fmt.rs Add #[must_use] to remaining alloc functions 2021-10-15 11:46:49 -04:00
lib.rs Add feature to alloc so we can re-export. 2021-11-05 17:35:07 +10:00
macros.rs Remove alloc/malloc/calloc/realloc doc aliases 2021-06-30 19:59:39 +01:00
raw_vec.rs Add #[must_use] to alloc constructors 2021-10-10 02:19:30 -04:00
rc.rs Add comments regarding superfluous !Sync impls 2021-11-08 13:07:20 -05:00
slice.rs Re-export core::slice::EscapeAscii 2021-11-05 17:14:57 +10:00
str.rs Fix str::SplitInclusive stabilisation date 2021-11-05 17:46:58 +10:00
string.rs Rollup merge of #89786 - jkugelman:must-use-len-and-is_empty, r=joshtriplett 2021-10-31 13:20:05 +01:00
sync.rs Rollup merge of #90427 - jkugelman:must-use-alloc-leak, r=joshtriplett 2021-10-31 09:20:27 +01: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