Skip to content

Commit 31b6284

Browse files
committed
Mention Clippy utils
1 parent 8590926 commit 31b6284

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/adding_lints.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,12 @@ TODO: Prose
328328

329329
Here are some pointers to things you are likely going to need for every lint:
330330

331+
* [Clippy utils][utils] - Various helper functions. Maybe the function you need
332+
is already in here. (`implements_trait`, `match_path`, `snippet`, etc)
333+
* [Clippy diagnostics][diagnostics]
331334
* [The `if_chain` macro][if_chain]
332335
* [`in_macro`][in_macro] and [`in_external_macro`][in_external_macro]
333336
* [`Span`][span]
334-
* [Clippy diagnostics][diagnostics]
335337
* [`Applicability`][applicability]
336338

337339
For `EarlyLintPass` lints:
@@ -360,6 +362,7 @@ don't hesitate to ask on Discord, IRC or in the issue/PR.
360362
[late_lint_pass]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/lint/trait.LateLintPass.html
361363
[fn_kind]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/visit/enum.FnKind.html
362364
[diagnostics]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/utils/diagnostics.rs
365+
[utils]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/utils/mod.rs
363366
[ident]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/source_map/symbol/struct.Ident.html
364367
[span]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax_pos/struct.Span.html
365368
[applicability]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/enum.Applicability.html

0 commit comments

Comments
 (0)