Skip to content

Commit c3c110f

Browse files
rylevjyn514
authored andcommitted
Fix line lens
1 parent 9636fa9 commit c3c110f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/diagnostics/lintstore.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ internally.
5959
These are lints used just by the compiler or plugins like `clippy`. They can be found in
6060
`rustc_lint::internal`.
6161

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.
6465

6566
Registration of these lints happens in the [`rustc_lint::register_internals`] function which is
6667
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`].
7778

7879
#### Plugin lints
7980

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.
8385

8486
Plugins are intended to declare lints with the `plugin` field set to true (e.g., by
8587
way of the [`declare_tool_lint!`] macro), but this is purely for diagnostics and help text;

0 commit comments

Comments
 (0)