-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for properly specifying how lint levels are determined #142610
Copy link
Copy link
Open
Labels
A-lint-levelsArea: lint levelsArea: lint levelsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-lint-levelsArea: lint levelsArea: lint levelsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for working towards properly specifying how lint levels are determined. This tracking issue is intended to serve as a connecting hub between related issues / discussions and efforts towards properly specifying the lint level mechanism. This tracking issue intentionally combines the "language side" (the concept of lint levels and lints, and in-source lint level attributes) and the "implementation side" (compiler flags), because both are underspecified and under-tested.
Notable lint level "components"
-F/D/W/A#[forbid(..)])--cap-lints#[expect(..)])--force-warnwarningsspecial lint groupNotable interactions
warningsand lint groups, and constituent lints.--cap-lintsand--force-warn--cap-lintsand--force-warn#[forbid(..)]and#[deny(..)], and macros-A warnings -D lintis not necessarily the same as-D lint -A warnings(?)Existing public-facing documentation
Possible bugs, unclear/unintuitive behavior and unresolved questions
This section is incomplete.
Related discussions
This section is incomplete.
warningslevel for a specific lint via command line #113307 (comment)Significant lint level related decisions and changes
This section is incomplete.
#[deny]inside#[forbid]as a no-op#[expect]some lints: Stabilizelint_reasons(RFC 2383)#[expect]attributeSteps towards properly specifying lint level mechanism
This section is a work-in-progress.
-A unused).