Auto merge of #8606 - InfRandomness:err()-expect()-lint, r=xFrednet
Add [`err_expect`] lint [`expect_err`] lint - \[ ] 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` Fixes https://github.com/rust-lang/rust-clippy/issues/1435 changelog: Added a lint to detect usage of .err().expect()
Showing
tests/ui/err_expect.fixed
0 → 100644
tests/ui/err_expect.rs
0 → 100644
tests/ui/err_expect.stderr
0 → 100644
想要评论请 注册 或 登录