File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -484,9 +484,13 @@ module.
484484### Declaring a lint
485485
486486The built-in compiler lints are defined in the [ ` rustc_lint ` ] [ builtin ]
487- crate.
487+ crate. Lints that need to be implemented in other crates are defined in
488+ [ ` rustc_lint_defs ` ] . You should prefer to place lints in ` rustc_lint ` if
489+ possible. One benefit is that it is close to the dependency root, so it can be
490+ much faster to work on.
488491
489492[ builtin ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/index.html
493+ [ `rustc_lint_defs` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/index.html
490494
491495Every lint is implemented via a ` struct ` that implements the ` LintPass ` ` trait `
492496(you also implement one of the more specific lint pass traits, either
You can’t perform that action at this time.
0 commit comments