Files
rust/compiler
Mara 20887b7ebf Rollup merge of #81939 - kper:fixing-81584-allocate-in-iter, r=davidtwco
Add suggestion `.collect()` for iterators in iterators

Closes #81584

```
error[E0515]: cannot return value referencing function parameter `y`
 --> main3.rs:4:38
  |
4 | ...                   .map(|y| y.iter().map(|x| x + 1))
  |                                -^^^^^^^^^^^^^^^^^^^^^^
  |                                |
  |                                returns a value referencing data owned by the current function
  |                                `y` is borrowed here
  |                                help: Maybe use `.collect()` to allocate the iterator
```

Added the suggestion: `help: Maybe use `.collect()` to allocate the iterator`
2021-03-05 10:57:18 +01:00
..
2021-02-14 18:03:11 +03:00
2021-02-20 17:19:30 -05:00
2021-02-20 10:51:26 +01:00
2021-03-01 19:29:15 -05:00
2021-02-21 12:22:22 +01:00
2021-02-21 12:22:22 +01:00
2021-03-03 11:22:44 +01:00
2021-03-03 11:22:44 +01:00