We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92612c9 commit 5c8c487Copy full SHA for 5c8c487
doc/adding_lints.md
@@ -115,7 +115,7 @@ where all the lint code is. We are going to call the file
115
`clippy_lints/src/foo_functions.rs` and import some initial things we need:
116
117
```rust
118
-use rustc::lint::{LintArray, LintPass};
+use rustc::lint::{LintArray, LintPass, EarlyLintPass};
119
use rustc::{declare_tool_lint, lint_array};
120
```
121
@@ -161,6 +161,8 @@ impl LintPass for FooFunctionsPass {
161
"FooFunctions"
162
}
163
164
+
165
+impl EarlyLintPass for FooFunctionsPass {}
166
167
168
Don't worry about the `name` method here. As long as it includes the name of the
0 commit comments