]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/blanket_clippy_restriction_lints.txt
Rollup merge of #102854 - semarie:openbsd-immutablestack, r=m-ou-se
[rust.git] / src / tools / clippy / src / docs / blanket_clippy_restriction_lints.txt
1 ### What it does
2 Checks for `warn`/`deny`/`forbid` attributes targeting the whole clippy::restriction category.
3
4 ### Why is this bad?
5 Restriction lints sometimes are in contrast with other lints or even go against idiomatic rust.
6 These lints should only be enabled on a lint-by-lint basis and with careful consideration.
7
8 ### Example
9 ```
10 #![deny(clippy::restriction)]
11 ```
12
13 Use instead:
14 ```
15 #![deny(clippy::as_conversions)]
16 ```