@@ -17,7 +17,7 @@ First, we have the lint declarations themselves: this is where the name and defa
17
17
other metadata come from. These are normally defined by way of the [ ` declare_lint! ` ] macro, which
18
18
boils down to a static with type ` &rustc_session::lint::Lint ` .
19
19
20
- As of <!-- date: 2021-07 --> July 2021 , we lint against direct declarations
20
+ As of <!-- date: 2022-02 --> February 2022 , we lint against direct declarations
21
21
without the use of the macro today (although this may change in the future, as
22
22
the macro is somewhat unwieldy to add new fields to, like all macros).
23
23
@@ -56,11 +56,11 @@ internally.
56
56
57
57
#### Internal lints
58
58
59
- These are lints used just by the compiler or plugins like ` clippy ` . They can be found in
59
+ These are lints used just by the compiler or plugins like ` clippy ` . They can be found in
60
60
` rustc_lint::internal ` .
61
61
62
- An example of such a lint is the check that lint passes are implemented using the
63
- ` declare_lint_pass! ` macro and not by hand. This is accomplished with the
62
+ An example of such a lint is the check that lint passes are implemented using the
63
+ ` declare_lint_pass! ` macro and not by hand. This is accomplished with the
64
64
` LINT_PASS_IMPL_WITHOUT_MACRO ` lint.
65
65
66
66
Registration of these lints happens in the [ ` rustc_lint::register_internals ` ] function which is
@@ -81,7 +81,7 @@ with internal lints, this happens inside of [`rustc_lint::new_lint_store`].
81
81
This is one of the primary use cases remaining for plugins/drivers. Plugins are given access
82
82
to the mutable ` LintStore ` during registration (which happens inside of
83
83
[ ` rustc_interface::register_plugins ` ] ) and they can call any functions they need on
84
- the ` LintStore ` , just like rustc code.
84
+ the ` LintStore ` , just like rustc code.
85
85
86
86
Plugins are intended to declare lints with the ` plugin ` field set to true (e.g., by
87
87
way of the [ ` declare_tool_lint! ` ] macro), but this is purely for diagnostics and help text;
0 commit comments