rust/library/core/tests
Matthias Krüger d5c05fcc8a
Rollup merge of #93057 - frengor:iter_collect_into, r=m-ou-se
Add Iterator::collect_into

This PR adds `Iterator::collect_into` as proposed by ``@cormacrelf`` in #48597 (see https://github.com/rust-lang/rust/pull/48597#issuecomment-842083688).
Followup of #92982.

This adds the following method to the Iterator trait:

```rust
fn collect_into<E: Extend<Self::Item>>(self, collection: &mut E) -> &mut E
```
2022-03-09 23:14:11 +01:00
..
fmt Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc 2021-10-20 04:35:10 +09:00
hash add tests 2022-02-02 23:07:02 +09:00
iter Add collect_into 2022-02-20 01:57:32 +01:00
num Miri/CTFE: properly treat overflow in (signed) division/rem as UB 2022-03-01 20:39:51 -05:00
ops Expand the docs for ops::ControlFlow a bit 2021-02-06 22:36:05 -08:00
alloc.rs
any.rs Add test for issue 84666. 2021-06-03 16:13:45 +02:00
array.rs add cfg_panic bootstrap 2022-02-10 22:10:08 +00:00
ascii.rs Add #[must_use] to expensive computations 2021-10-12 23:27:17 -04:00
atomic.rs Make more From impls const 2021-10-18 19:19:28 +09:00
bool.rs Constify bool::then{,_some} 2021-12-15 00:11:23 +08:00
cell.rs Make more From impls const 2021-10-18 19:19:28 +09:00
char.rs Fix an edge case in chat::DecodeUtf16::size_hint 2022-01-30 15:32:21 +03:00
clone.rs Fix borrow and deref 2021-03-03 11:23:29 +01:00
cmp.rs update cfg(bootstrap)s 2022-01-28 15:01:07 +01:00
const_ptr.rs Revert "Revert tests added by PR 81167." 2021-06-27 12:05:17 +02:00
convert.rs Revert "Auto merge of #89450 - usbalbin:const_try_revert, r=oli-obk" 2021-12-12 12:34:59 +08:00
future.rs add tests 2022-02-02 23:07:02 +09:00
intrinsics.rs Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
lazy.rs Make more From impls const 2021-10-18 19:19:28 +09:00
lib.rs Rollup merge of #93057 - frengor:iter_collect_into, r=m-ou-se 2022-03-09 23:14:11 +01:00
macros.rs Allow leading pipe in matches!() patterns. 2021-07-15 22:05:45 +03:00
manually_drop.rs Test ManuallyDrop::clone_from. 2021-07-05 11:55:45 +00:00
mem.rs add cfg_panic bootstrap 2022-02-10 22:10:08 +00:00
nonzero.rs Make From impls of NonZero integer const. 2021-10-20 12:04:58 +09:00
ops.rs Test not never 2021-11-21 19:10:39 -08:00
option.rs Constify (most) Option methods 2021-12-17 20:46:47 +08:00
pattern.rs
pin.rs
pin_macro.rs Write {ui,} tests for pin_macro and pin! 2022-02-14 16:56:37 +01:00
ptr.rs Rollup merge of #92887 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum 2022-01-30 08:37:46 -08:00
result.rs Make Result::as_mut const 2021-10-17 18:39:54 +09:00
simd.rs Miri can run this test now 2022-03-03 14:54:18 -05:00
slice.rs fix a warning when building core tests with cfg(miri) 2022-03-03 14:54:18 -05:00
str.rs
str_lossy.rs
task.rs
time.rs Make Duration's Debug format pad to width 2021-09-16 03:09:31 +02:00
tuple.rs
unicode.rs Make ui test that are run-pass and do not test the compiler itself library tests 2020-11-30 02:47:32 +01:00
waker.rs Implement data and vtable getters for RawWaker 2021-12-17 04:30:13 +08:00