@@ -15,9 +15,9 @@ Unfortunately, a lot of the documentation we have refers to both of these as jus
1515
1616First, we have the lint declarations themselves: this is where the name and default lint level and
1717other metadata come from. These are normally defined by way of the [ ` declare_lint! ` ] macro, which
18- boils down to a static with type ` &rustc ::lint::Lint ` . We lint against direct declarations without
19- the use of the macro today (though this may change in the future, as the macro is somewhat unwieldy
20- to add new fields to, like all macros by example).
18+ boils down to a static with type ` &rustc_session ::lint::Lint ` . We lint against direct declarations
19+ without the use of the macro today (though this may change in the future, as the macro is somewhat
20+ unwieldy to add new fields to, like all macros by example).
2121
2222Lint declarations don't carry any "state" - they are merely global identifers and descriptions of
2323lints. We assert at runtime that they are not registered twice (by lint name).
@@ -55,9 +55,9 @@ internally.
5555Note, these include both rustc-internal lints, and the traditional lints, like, for example the dead
5656code lint.
5757
58- These are primarily described in two places: ` rustc ::lint::builtin` and ` rustc_lint::builtin ` . The
59- first provides the definitions for the lints themselves, and the latter provides the lint pass
60- definitions (and implementations).
58+ These are primarily described in two places: ` rustc_session ::lint::builtin` and
59+ ` rustc_lint::builtin ` . The first provides the definitions for the lints themselves,
60+ and the latter provides the lint pass definitions (and implementations).
6161
6262The internal lint registration happens in the [ ` rustc_lint::register_builtins ` ] function, along with
6363the [ ` rustc_lint::register_internals ` ] function. More generally, the LintStore "constructor"
0 commit comments