Skip to content

Commit 1011e08

Browse files
committed
Reference nightly-rustc docs in clippy's docs
1 parent 18cc4e7 commit 1011e08

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/adding_lints.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ in the following steps:
634634
Here are some pointers to things you are likely going to need for every lint:
635635

636636
* [Clippy utils][utils] - Various helper functions. Maybe the function you need
637-
is already in here (`implements_trait`, `match_def_path`, `snippet`, etc)
637+
is already in here ([`is_type_diagnostic_item`], [`implements_trait`], [`snippet`], etc)
638638
* [Clippy diagnostics][diagnostics]
639639
* [The `if_chain` macro][if_chain]
640640
* [`from_expansion`][from_expansion] and [`in_external_macro`][in_external_macro]
@@ -660,7 +660,10 @@ documentation currently. This is unfortunate, but in most cases you can probably
660660
get away with copying things from existing similar lints. If you are stuck,
661661
don't hesitate to ask on [Zulip] or in the issue/PR.
662662

663-
[utils]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_utils/src/lib.rs
663+
[utils]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/index.html
664+
[`is_type_diagnostic_item`]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/ty/fn.is_type_diagnostic_item.html
665+
[`implements_trait`]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/ty/fn.implements_trait.html
666+
[`snippet`]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/source/fn.snippet.html
664667
[if_chain]: https://docs.rs/if_chain/*/if_chain/
665668
[from_expansion]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/struct.Span.html#method.from_expansion
666669
[in_external_macro]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/lint/fn.in_external_macro.html

0 commit comments

Comments
 (0)