about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-26 07:44:21 +0000
committerbors <bors@rust-lang.org>2024-07-26 07:44:21 +0000
commit345c94c98fd3fd39e07bfcd7e0e30261649c41fd (patch)
treef7c77c76715e719dcee1e5340cd1f27e7ff78c05 /compiler/rustc_pattern_analysis/src
parent533c377950283932ecb6a5af9fe226b8514d292b (diff)
parent90c19635fdbe6d572e1c7d3e00b6c0948b18ae35 (diff)
downloadrust-345c94c98fd3fd39e07bfcd7e0e30261649c41fd.tar.gz
rust-345c94c98fd3fd39e07bfcd7e0e30261649c41fd.zip
Auto merge of #13144 - xFrednet:07797-restriction-and-then-what, r=y21
Make restriction lint's use `span_lint_and_then` (i -> p)

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

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

changelog: none
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions