-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Description
rustc -W help
mentions:
Lint groups provided by rustc:
name sub-lints
---- ---------
bad-style non-camel-case-types, non-snake-case, non-upper-case-globals
unused unused-imports, unused-variables, unused-assignments, dead-code, unused-mut, unreachable-code, unused-must-use, unused-unsafe, path-statements, unused-attributes
There's another lint group, warnings
, which turns off all builtin lints. We should mention it in this list (preferably at the top), or in another line below.
Relevant code:
rust/src/librustc_driver/lib.rs
Line 670 in ac0e845
let print_lint_groups = |lints: Vec<(&'static str, Vec<lint::LintId>)>| { |
If you wish to make it appear in the table, ensure that max_name_len
takes the presence of warnings
into account too. Instead of listing the lints for the second column, add some text along the lines of "all builtin lints".
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.