Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reformat section
  • Loading branch information
tshepang committed Aug 14, 2022
commit 615bf00714c4674dd3affd1cf9b60aa1bf0a6bc6
18 changes: 10 additions & 8 deletions src/diagnostics/lintstore.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,16 @@ function which is called when constructing a new lint store inside

### Builtin Lints

These are primarily described in two places: `rustc_session::lint::builtin` and
`rustc_lint::builtin`. Often the first provides the definitions for the lints
themselves, and the latter provides the lint pass definitions (and
implementations), but this is not always true.

The builtin lint registration happens in the [`rustc_lint::register_builtins`]
function. Just like with internal lints, this happens inside of
[`rustc_lint::new_lint_store`].
These are primarily described in two places,
`rustc_session::lint::builtin` and `rustc_lint::builtin`.
Often the first provides the definitions for the lints themselves,
and the latter provides the lint pass definitions (and implementations),
but this is not always true.

The builtin lint registration happens in
the [`rustc_lint::register_builtins`] function.
Just like with internal lints,
this happens inside of [`rustc_lint::new_lint_store`].

#### Plugin lints

Expand Down