rust/clippy_dev/src
Kevin Reid 0f5338cd90 For restriction lints, replace “Why is this bad?” with “Why restrict this?”
The `restriction` group contains many lints which are not about
necessarily “bad” things, but style choices — perhaps even style choices
which contradict conventional Rust style — or are otherwise very
situational. This results in silly wording like “Why is this bad?
It isn't, but ...”, which I’ve seen confuse a newcomer at least once.

To improve this situation, this commit replaces the “Why is this bad?”
section heading with “Why restrict this?”, for most, but not all,
restriction lints. I left alone the ones whose placement in the
restriction group is more incidental.

In order to make this make sense, I had to remove the “It isn't, but”
texts from the contents of the sections. Sometimes further changes
were needed, or there were obvious fixes to make, and I went ahead
and made those changes without attempting to split them into another
commit, even though many of them are not strictly necessary for the
“Why restrict this?” project.
2024-05-23 15:51:33 -07:00
..
setup Add cargo dev setup toolchain 2024-04-16 18:28:07 +00:00
dogfood.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
fmt.rs Add cargo dev setup toolchain 2024-04-16 18:28:07 +00:00
lib.rs Add cargo dev setup toolchain 2024-04-16 18:28:07 +00:00
lint.rs Set RUSTC_ICE=0 in uitests and cargo dev lint 2024-04-01 17:05:55 +02:00
main.rs Type safe CLI implementation for clippy-dev 2024-05-03 11:36:42 +02:00
new_lint.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
serve.rs Type safe CLI implementation for clippy-dev 2024-05-03 11:36:42 +02:00
update_lints.rs Type safe CLI implementation for clippy-dev 2024-05-03 11:36:42 +02:00