@@ -17,7 +17,7 @@ First, we have the lint declarations themselves: this is where the name and defa
1717other metadata come from. These are normally defined by way of the [ ` declare_lint! ` ] macro, which
1818boils down to a static with type ` &rustc_session::lint::Lint ` .
1919
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
2121without the use of the macro today (although this may change in the future, as
2222the macro is somewhat unwieldy to add new fields to, like all macros).
2323
@@ -56,11 +56,11 @@ internally.
5656
5757#### Internal lints
5858
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
6060` rustc_lint::internal ` .
6161
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
6464` LINT_PASS_IMPL_WITHOUT_MACRO ` lint.
6565
6666Registration 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`].
8181This is one of the primary use cases remaining for plugins/drivers. Plugins are given access
8282to the mutable ` LintStore ` during registration (which happens inside of
8383[ ` 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.
8585
8686Plugins are intended to declare lints with the ` plugin ` field set to true (e.g., by
8787way of the [ ` declare_tool_lint! ` ] macro), but this is purely for diagnostics and help text;
0 commit comments