Skip to content

Mention the warnings lint group in rustc -W help text #30203

Closed
@Manishearth

Description

@Manishearth

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:

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.E-help-wantedCall 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions