Skip to content

Commit c90c09c

Browse files
authored
Merge pull request #997 from ehuss/rustdoc-tool-lint
Add rustdoc to tool lints.
2 parents 942a7ab + d2ed0e1 commit c90c09c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/attributes/diagnostics.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ pub mod m3 {
7979
Tool lints allows using scoped lints, to `allow`, `warn`, `deny` or `forbid`
8080
lints of certain tools.
8181

82-
Currently `clippy` is the only available lint tool.
83-
8482
Tool lints only get checked when the associated tool is active. If a lint
8583
attribute, such as `allow`, references a nonexistent tool lint, the compiler
8684
will not warn about the nonexistent lint until you use the tool.
@@ -104,6 +102,8 @@ fn foo() {
104102
}
105103
```
106104

105+
> Note: `rustc` currently recognizes the tool lints for "[clippy]" and "[rustdoc]".
106+
107107
## The `deprecated` attribute
108108

109109
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.
274274
[macro definition]: ../macros-by-example.md
275275
[module]: ../items/modules.md
276276
[rustc book]: ../../rustc/lints/index.html
277+
[rustdoc]: ../../rustdoc/lints.html
277278
[struct field]: ../items/structs.md
278279
[struct]: ../items/structs.md
279280
[trait declaration]: ../items/traits.md

0 commit comments

Comments
 (0)