@@ -59,8 +59,9 @@ internally.
59
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 ` declare_lint_pass! `
63
- macro and not by hand. This is accomplished with the ` LINT_PASS_IMPL_WITHOUT_MACRO ` lint.
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
+ ` LINT_PASS_IMPL_WITHOUT_MACRO ` lint.
64
65
65
66
Registration of these lints happens in the [ ` rustc_lint::register_internals ` ] function which is
66
67
called when constructing a new lint store inside [ ` rustc_lint::new_lint_store ` ] .
@@ -77,9 +78,10 @@ with internal lints, this happens inside of [`rustc_lint::new_lint_store`].
77
78
78
79
#### Plugin lints
79
80
80
- This is one of the primary use cases remaining for plugins/drivers. Plugins are given access to the
81
- mutable ` LintStore ` during registration (which happens inside of [ ` rustc_interface::register_plugins ` ] )
82
- and they can call any functions they need on the ` LintStore ` , just like rustc code.
81
+ This is one of the primary use cases remaining for plugins/drivers. Plugins are given access
82
+ to the mutable ` LintStore ` during registration (which happens inside of
83
+ [ ` rustc_interface::register_plugins ` ] ) and they can call any functions they need on
84
+ the ` LintStore ` , just like rustc code.
83
85
84
86
Plugins are intended to declare lints with the ` plugin ` field set to true (e.g., by
85
87
way of the [ ` declare_tool_lint! ` ] macro), but this is purely for diagnostics and help text;
0 commit comments