rust/library/alloc/src
bors 2e2c86eba2 Auto merge of #92070 - rukai:replace_vec_into_iter_with_array_into_iter, r=Mark-Simulacrum
Replace usages of vec![].into_iter with [].into_iter

`[].into_iter` is idiomatic over `vec![].into_iter` because its simpler and faster (unless the vec is optimized away in which case it would be the same)

So we should change all the implementation, documentation and tests to use it.

I skipped:
* `src/tools` - Those are copied in from upstream
* `src/test/ui` - Hard to tell if `vec![].into_iter` was used intentionally or not here and not much benefit to changing it.
*  any case where `vec![].into_iter` was used because we specifically needed a `Vec::IntoIter<T>`
*  any case where it looked like we were intentionally using `vec![].into_iter` to test it.
2022-01-11 14:23:24 +00:00
..
alloc Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
collections Auto merge of #92070 - rukai:replace_vec_into_iter_with_array_into_iter, r=Mark-Simulacrum 2022-01-11 14:23:24 +00: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 Auto merge of #92068 - fee1-dead:libcore2021, r=m-ou-se 2022-01-08 21:41:48 +00: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 Fix a compile error when no_global_oom_handling 2022-01-04 01:37:53 +09:00
macros.rs Remove alloc/malloc/calloc/realloc doc aliases 2021-06-30 19:59:39 +01:00
raw_vec.rs RawVec: don't recompute capacity after allocating. 2021-12-22 05:13:41 +11:00
rc.rs doc: fix typo in comments 2021-12-12 00:27:27 +01:00
slice.rs Derive src pointers in sort drop guards from &T 2021-12-18 20:02:03 -05: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 doc: fix typo in comments 2021-12-12 00:27: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