Skip to content

Commit e0625f4

Browse files
authored
fix(adding_lints): usage of early vs late lint pass
1 parent 0e2505b commit e0625f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/src/development/adding_lints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ either [`EarlyLintPass`][early_lint_pass] or [`LateLintPass`][late_lint_pass].
301301

302302
In short, the `EarlyLintPass` runs before type checking and
303303
[HIR](https://rustc-dev-guide.rust-lang.org/hir.html) lowering and the `LateLintPass`
304-
has access to type information. Consider using the `LateLintPass` unless you need
305-
something specific from the `EarlyLintPass`.
304+
has access to type information. Consider using the `EarlyLintPass` unless you need
305+
something specific from the `LateLintPass`.
306306

307307
Since we don't need type information for checking the function name, we used
308308
`--pass=early` when running the new lint automation and all the imports were

0 commit comments

Comments
 (0)