From d2ed0e1a6ba8d8c45abaadcd9d08b66b4c8d5597 Mon Sep 17 00:00:00 2001
From: Eric Huss <eric@huss.org>
Date: Fri, 2 Apr 2021 14:10:23 -0700
Subject: [PATCH] Add rustdoc to tool lints.

---
 src/attributes/diagnostics.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/attributes/diagnostics.md b/src/attributes/diagnostics.md
index 6a972d322..f02d28023 100644
--- a/src/attributes/diagnostics.md
+++ b/src/attributes/diagnostics.md
@@ -79,8 +79,6 @@ pub mod m3 {
 Tool lints allows using scoped lints, to `allow`, `warn`, `deny` or `forbid`
 lints of certain tools.
 
-Currently `clippy` is the only available lint tool.
-
 Tool lints only get checked when the associated tool is active. If a lint
 attribute, such as `allow`, references a nonexistent tool lint, the compiler
 will not warn about the nonexistent lint until you use the tool.
@@ -104,6 +102,8 @@ fn foo() {
 }
 ```
 
+> Note: `rustc` currently recognizes the tool lints for "[clippy]" and "[rustdoc]".
+
 ## The `deprecated` attribute
 
 The *`deprecated` attribute* marks an item as deprecated. `rustc` will issue
@@ -274,6 +274,7 @@ When used on a function in a trait implementation, the attribute does nothing.
 [macro definition]: ../macros-by-example.md
 [module]: ../items/modules.md
 [rustc book]: ../../rustc/lints/index.html
+[rustdoc]: ../../rustdoc/lints.html
 [struct field]: ../items/structs.md
 [struct]: ../items/structs.md
 [trait declaration]: ../items/traits.md