rust/library/core/src/iter
Esteban Küber 89a3c19832 Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator
```
error[E0599]: no method named `map` found for struct `Vec<bool>` in the current scope
  --> $DIR/vec-on-unimplemented.rs:3:23
   |
LL |     vec![true, false].map(|v| !v).collect::<Vec<_>>();
   |                       ^^^ `Vec<bool>` is not an iterator
   |
help: call `.into_iter()` first
   |
LL |     vec![true, false].into_iter().map(|v| !v).collect::<Vec<_>>();
   |                       ++++++++++++
```

We used to provide some help through `rustc_on_unimplemented` on non-`impl Trait` and non-type-params, but this lets us get rid of some otherwise unnecessary conditions in the annotation on `Iterator`.
2024-03-03 18:53:36 +00:00
..
adapters library: use addr_of! 2024-02-24 16:02:17 +03:00
sources Replace NonZero::<_>::new with NonZero::new. 2024-02-15 08:09:42 +01:00
traits Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00
mod.rs Auto merge of #110353 - the8472:in-place-flatten-chunks, r=cuviper 2023-11-28 12:22:16 +00:00
range.rs Replace NonZero::<_>::new with NonZero::new. 2024-02-15 08:09:42 +01:00
sources.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00