You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #12649 - flip1995:book-readme-sync, r=xFrednet
Consistent lint group table in book and README
The lint table and the restriction group description was improved in #10385, but only in the README. Apply the same changes to the book.
r? `@xFrednet`
I noticed that I left review comments about this in #10385, but never submitted them. So to this day they are listed as "pending" in the GitHub UI.
This is just copy and paste of the current README file on `master`.
changelog: none
Copy file name to clipboardExpand all lines: book/src/README.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,27 @@ category.
18
18
|`clippy::all`| all lints that are on by default (correctness, suspicious, style, complexity, perf) |**warn/deny**|
19
19
|`clippy::correctness`| code that is outright wrong or useless |**deny**|
20
20
|`clippy::suspicious`| code that is most likely wrong or useless |**warn**|
21
+
|`clippy::style`| code that should be written in a more idiomatic way |**warn**|
21
22
|`clippy::complexity`| code that does something simple but in a complex way |**warn**|
22
23
|`clippy::perf`| code that can be written to run faster |**warn**|
23
-
|`clippy::style`| code that should be written in a more idiomatic way|**warn**|
24
-
|`clippy::pedantic`| lints which are rather strict or might have false positives | allow |
24
+
|`clippy::pedantic`| lints which are rather strict or have occasional false positives| allow|
25
+
|`clippy::restriction`| lints which prevent the use of language and library features[^restrict]| allow |
25
26
|`clippy::nursery`| new lints that are still under development | allow |
26
-
|`clippy::cargo`| lints for the cargo manifest | allow || allow |
27
+
|`clippy::cargo`| lints for the cargo manifest | allow |
28
+
29
+
More to come, please [file an issue](https://github.com/rust-lang/rust-clippy/issues) if you have ideas!
30
+
31
+
The `restriction` category should, *emphatically*, not be enabled as a whole. The contained
32
+
lints may lint against perfectly reasonable code, may not have an alternative suggestion,
33
+
and may contradict any other lints (including other categories). Lints should be considered
34
+
on a case-by-case basis before enabling.
27
35
28
-
More to come, please [file an
29
-
issue](https://github.com/rust-lang/rust-clippy/issues) if you have ideas!
36
+
[^restrict]: Some use cases for `restriction` lints include:
0 commit comments