about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-25 06:29:46 +0000
committerbors <bors@rust-lang.org>2023-03-25 06:29:46 +0000
commit9fa6b3c15758e85657d5be051cfa57022a8bbe57 (patch)
tree833bbcd08e49656c242961cf5e6de45eadca7fc0 /compiler/rustc_codegen_llvm/src
parent24a69af213f4bf23014dc91903e7a934c88f6b9e (diff)
parente44836faf6ff114805062f723b349d6e10bf86b6 (diff)
downloadrust-9fa6b3c15758e85657d5be051cfa57022a8bbe57.tar.gz
rust-9fa6b3c15758e85657d5be051cfa57022a8bbe57.zip
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions