rust-clippy/clippy_lints
bors cfb38819cc Auto merge of #13145 - xFrednet:07797-restriction-and-then-why, r=Jarcho
Make restriction lint's use `span_lint_and_then` (q -> w)

This migrates a few restriction lints to use `span_lint_and_then`. This change is motivated by https://github.com/rust-lang/rust-clippy/issues/7797.

I've also cleaned up some lint message. Mostly minor stuff. For example: suggestions with a longer message than `"try"` now use `SuggestionStyle::ShowAlways`

---

cc: https://github.com/rust-lang/rust-clippy/issues/7797

sister PR of: https://github.com/rust-lang/rust-clippy/pull/13136

changelog: none
2024-08-06 04:47:27 +00:00
..
src Auto merge of #13145 - xFrednet:07797-restriction-and-then-why, r=Jarcho 2024-08-06 04:47:27 +00:00
Cargo.toml Bump Clippy version -> 0.1.82 2024-07-25 18:23:37 +02:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.