File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,16 @@ default lint level and other metadata come from. These are normally defined by
1919way of the [ ` declare_lint! ` ] macro, which boils down to a static with type
2020[ ` &rustc_lint_defs::Lint ` ] .
2121
22+ First, we have the lint declarations themselves,
23+ and this is where the name and default lint level and other metadata come from.
24+ These are normally defined by way of the [ ` declare_lint! ` ] macro,
25+ which boils down to a static with type [ ` &rustc_lint_defs::Lint ` ]
26+ (although this may change in the future,
27+ as the macro is somewhat unwieldy to add new fields to,
28+ like all macros).
29+
2230As of <!-- date-check --> Aug 2022,
2331we lint against direct declarations without the use of the macro.
24- (although this may change in the future,
25- as the macro is somewhat unwieldy to add new fields to, like all macros).
2632
2733Lint declarations don't carry any "state" - they are merely global identifiers
2834and descriptions of lints. We assert at runtime that they are not registered
You can’t perform that action at this time.
0 commit comments