rust/library/core/src
bors 9fa6b3c157 Auto merge of #99929 - the8472:default-iters, r=scottmcm
Implement Default for some alloc/core iterators

Add `Default` impls to the following collection iterators:

* slice::{Iter, IterMut}
* binary_heap::IntoIter
* btree::map::{Iter, IterMut, Keys, Values, Range, IntoIter, IntoKeys, IntoValues}
* btree::set::{Iter, IntoIter, Range}
* linked_list::IntoIter
* vec::IntoIter

and these adapters:

* adapters::{Chain, Cloned, Copied, Rev, Enumerate, Flatten, Fuse, Rev}

For iterators which are generic over allocators it only implements it for the global allocator because we can't conjure an allocator from nothing or would have to turn the allocator field into an `Option` just for this change.

These changes will be insta-stable.

ACP: https://github.com/rust-lang/libs-team/issues/77
2023-03-25 06:29:46 +00:00
..
alloc Clarify new_size for realloc means bytes 2023-02-09 23:56:20 -08:00
array Merge two different equality specialization traits in core 2023-03-01 14:42:06 -08:00
async_iter use consistent terminology 2022-10-29 09:23:12 +02:00
cell Add OnceCell<T>: !Sync impl for diagnostics 2023-01-19 20:14:21 +01:00
char Auto merge of #105671 - lukas-code:depreciate-char, r=scottmcm 2023-02-12 11:09:06 +00:00
cmp Merge two different equality specialization traits in core 2023-03-01 14:42:06 -08:00
convert Add #[inline] to the Into for From impl 2023-03-24 15:06:31 -04:00
ffi Bump version placeholders 2023-03-15 08:55:22 -04:00
fmt Auto merge of #108862 - Mark-Simulacrum:bootstrap-bump, r=pietroalbini 2023-03-17 19:00:38 +00:00
future Remove identity_future indirection 2023-03-08 15:37:14 +01:00
hash Rollup merge of #109287 - scottmcm:hash-slice-size-of-val, r=oli-obk 2023-03-18 12:04:24 +01:00
intrinsics Auto merge of #108442 - scottmcm:mir-transmute, r=oli-obk 2023-03-23 18:43:04 +00:00
iter Auto merge of #99929 - the8472:default-iters, r=scottmcm 2023-03-25 06:29:46 +00:00
macros Use Edition 2021 :pat in matches macro 2023-03-06 21:21:06 +01:00
mem stage-step cfgs 2023-01-30 13:09:09 -05:00
net Bump version placeholders 2023-03-15 08:55:22 -04:00
num Auto merge of #108717 - TDecki:dec2flt-inline, r=thomcc 2023-03-21 04:55:02 +00:00
ops Bump to latest beta 2023-03-15 08:55:22 -04:00
panic Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
prelude Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
ptr Improved implementation and comments after code review feedback 2023-03-14 22:24:28 -07:00
slice Auto merge of #99929 - the8472:default-iters, r=scottmcm 2023-03-25 06:29:46 +00:00
str Rollup merge of #100311 - xfix:lines-fix-handling-of-bare-cr, r=ChrisDenton 2023-03-23 00:00:30 +05:30
sync Bump to latest beta 2023-03-15 08:55:22 -04:00
task Inline Poll methods 2023-02-13 14:17:45 +08:00
unicode Use hex literal for INDEX_MASK 2023-03-21 09:59:47 +01:00
any.rs Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
arch.rs move core::arch into separate file 2022-11-20 10:28:14 +01:00
ascii.rs Inline <EscapeDefault as Iterator>::next 2022-03-10 15:35:22 +01:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs Add missing assertion 2022-09-22 02:12:06 -04:00
borrow.rs Minor grammar nit. 2022-12-12 16:22:01 -07:00
cell.rs Rollup merge of #106921 - madsmtm:cell-memory-layout, r=dtolnay 2023-03-10 19:59:17 +01:00
clone.rs Make some trivial functions #[inline(always)] 2022-12-07 17:11:17 +01:00
cmp.rs Merge two different equality specialization traits in core 2023-03-01 14:42:06 -08:00
default.rs cfg-step code 2022-11-06 17:21:21 -05:00
error.md Small round of typo fixes 2022-11-04 20:06:18 -07:00
error.rs Bump to latest beta 2023-03-15 08:55:22 -04:00
hint.rs clarify correctness of black_box 2023-02-15 16:22:08 +00:00
internal_macros.rs ignore a doctest for the non-exported macro 2022-05-03 18:33:56 +09:00
intrinsics.rs move Option::as_slice to intrinsic 2023-03-18 07:15:15 +01:00
lib.rs Add #![feature(generic_arg_infer)] to core for stdarch 2023-03-19 21:08:56 +00:00
marker.rs Bump to latest beta 2023-03-15 08:55:22 -04:00
option.rs move Option::as_slice to intrinsic 2023-03-18 07:15:15 +01:00
panic.rs Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
panicking.rs Rollup merge of #108924 - tmiasko:panic-immediate-abort, r=thomcc 2023-03-24 01:22:04 +01:00
pin.rs Beautify pin! docs 2023-03-16 18:03:23 +01:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs unequal → not equal 2023-03-15 23:55:48 +05:30
result.rs "Basic usage" is redundant for there is just one example 2023-02-16 19:49:31 +02:00
time.rs Bump version placeholders to release 2022-11-06 17:11:02 -05:00
tuple.rs Use partial_cmp to implement tuple lt/le/ge/gt 2023-02-16 23:59:13 -08:00
unit.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00