about summary refs log tree commit diff
diff options
context:
space:
mode:
authorxFrednet <xFrednet@gmail.com>2021-11-04 12:09:15 +0100
committerxFrednet <xFrednet@gmail.com>2021-11-04 12:09:15 +0100
commit1011e083cd4b87c71ee042e07345dc547bcfc055 (patch)
treed4c6ffe301f5566710666cc472a1be63db87e5d3
parent18cc4e74f89ddcfc9dd873fb8a5e5dfafd850107 (diff)
downloadrust-1011e083cd4b87c71ee042e07345dc547bcfc055.tar.gz
rust-1011e083cd4b87c71ee042e07345dc547bcfc055.zip
Reference nightly-rustc docs in clippy's docs
-rw-r--r--doc/adding_lints.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/adding_lints.md b/doc/adding_lints.md
index bd32696d6db..ae2444f0171 100644
--- a/doc/adding_lints.md
+++ b/doc/adding_lints.md
@@ -634,7 +634,7 @@ in the following steps:
 Here are some pointers to things you are likely going to need for every lint:
 
 * [Clippy utils][utils] - Various helper functions. Maybe the function you need
-  is already in here (`implements_trait`, `match_def_path`, `snippet`, etc)
+  is already in here ([`is_type_diagnostic_item`], [`implements_trait`], [`snippet`], etc)
 * [Clippy diagnostics][diagnostics]
 * [The `if_chain` macro][if_chain]
 * [`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
 get away with copying things from existing similar lints. If you are stuck,
 don't hesitate to ask on [Zulip] or in the issue/PR.
 
-[utils]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_utils/src/lib.rs
+[utils]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/index.html
+[`is_type_diagnostic_item`]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/ty/fn.is_type_diagnostic_item.html
+[`implements_trait`]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/ty/fn.implements_trait.html
+[`snippet`]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/source/fn.snippet.html
 [if_chain]: https://docs.rs/if_chain/*/if_chain/
 [from_expansion]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/struct.Span.html#method.from_expansion
 [in_external_macro]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/lint/fn.in_external_macro.html