rust/library/alloc/src
Matthias Krüger 9474c74fb6
Rollup merge of #93109 - JakobDegen:arc-docs, r=m-ou-se
Improve `Arc` and `Rc` documentation

This makes two changes (I can split the PR if necessary, but the changes are pretty small):
 1. A bunch of trait implementations claimed to be zero cost; however, they use the `Arc<T>: From<Box<T>>` impl which is definitely not free, especially for large dynamically sized `T`.
 2.  The code in deferred initialization examples unnecessarily used excessive amounts of `unsafe`. This has been reduced.
2022-01-21 22:03:18 +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 #92706 - umanwizard:btree, r=dtolnay 2022-01-16 16:58:16 +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 Improve estimation of capacity in Vec::from_iter 2022-01-19 09:47:49 -05:00
alloc.rs Add tracking issues (const_box, const_alloc_error) 2022-01-04 00:35:53 +09:00
borrow.rs docs: fix typo 2021-12-18 11:21:58 +01:00
boxed.rs Add tracking issues (const_box, const_alloc_error) 2022-01-04 00:35:53 +09:00
fmt.rs Give examples of format args capture in the fmt module documentation 2021-11-15 10:13:44 +01:00
lib.rs Partially stabilize maybe_uninit_extra 2022-01-11 17:01:13 +01:00
macros.rs Add diagnostic items for macros 2022-01-06 14:59:33 +00:00
raw_vec.rs Improve estimation of capacity in Vec::from_iter 2022-01-19 09:47:49 -05:00
rc.rs Remove unnecessary unsafe code in Arc deferred initialization examples. 2022-01-20 06:21:51 -05:00
slice.rs Rollup merge of #89621 - digama0:patch-2, r=yaahc 2022-01-19 10:42:13 +01:00
str.rs Use spare_capacity_mut instead of invalid unchecked indexing 2021-12-08 17:58:57 -05:00
string.rs Fix a minor mistake in String::try_reserve_exact examples 2021-12-29 13:22:35 +08:00
sync.rs Remove unnecessary unsafe code in Arc deferred initialization examples. 2022-01-20 06:21:51 -05: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