File tree 1 file changed +8
-2
lines changed
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
19
19
way of the [ ` declare_lint! ` ] macro, which boils down to a static with type
20
20
[ ` &rustc_lint_defs::Lint ` ] .
21
21
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
+
22
30
As of <!-- date-check --> Aug 2022,
23
31
we 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).
26
32
27
33
Lint declarations don't carry any "state" - they are merely global identifiers
28
34
and descriptions of lints. We assert at runtime that they are not registered
You can’t perform that action at this time.
0 commit comments