bors 679fa9f2bf Auto merge of #9187 - sgued:iter-once, r=flip1995
Add lint recommending using `std::iter::once` and `std::iter::empty`

```
changelog: [`iter_once`]: add new lint
changelog: [`iter_empty`]: add new lint
```

fixes #9186

- \[ ] Followed [lint naming conventions][lint_naming]
- \[x] Added passing UI tests (including committed `.stderr` file)
- \[x] `cargo test` passes locally
- \[x] Executed `cargo dev update_lints`
- \[x] Added lint documentation
- \[x] Run `cargo dev fmt`

[lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints

The lint doesn't really follow the naming conventions. I don't have any better idea so I'm open to suggestions.
2022-08-14 15:45:17 +00:00
..
2022-07-12 21:00:14 +04:00
2022-08-02 12:06:22 -05:00
2022-07-12 21:00:14 +04:00
2022-07-12 21:00:14 +04:00
2022-07-12 21:00:14 +04:00
2022-07-12 21:00:14 +04:00
2022-07-12 21:00:14 +04:00
2022-02-15 16:03:24 +11:00