Skip to content

Commit 7b5c503

Browse files
committed
accept (modified) review suggestion
#1429 (comment)
1 parent 6596389 commit 7b5c503

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/diagnostics/lintstore.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ default lint level and other metadata come from. These are normally defined by
1919
way 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+
2230
As of <!-- date-check --> Aug 2022,
2331
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).
2632

2733
Lint declarations don't carry any "state" - they are merely global identifiers
2834
and descriptions of lints. We assert at runtime that they are not registered

0 commit comments

Comments
 (0)