Skip to content

Commit d7884d4

Browse files
authored
Noted necessessity and fixed rustdoc:: prefix
Now shows that certain warnings are unnecessary but includes them for consistency.
1 parent 2b27c82 commit d7884d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/rustdoc/src/lints.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ This lint **warns by default**. This lint detects when [intra-doc links] from pu
7070
For example:
7171

7272
```rust
73-
#![warn(private_intra_doc_links)]
73+
#![warn(rustdoc::private_intra_doc_links)] // note: unecessary - warns by default.
7474

7575
/// [private]
7676
pub fn public() {}
@@ -112,7 +112,7 @@ This lint is **allowed by default**. It detects items missing documentation.
112112
For example:
113113

114114
```rust
115-
#![warn(missing_docs)]
115+
#![warn(rustdoc::missing_docs)]
116116

117117
pub fn undocumented() {}
118118
# fn main() {}
@@ -229,7 +229,7 @@ This lint **warns by default**. It detects code block attributes in
229229
documentation examples that have potentially mis-typed values. For example:
230230

231231
```rust
232-
#![warn(rustdoc::invalid_codeblock_attributes)]
232+
#![warn(rustdoc::invalid_codeblock_attributes)] // note: unecessary - warns by default.
233233

234234
/// Example.
235235
///
@@ -304,7 +304,7 @@ This lint is **warn-by-default**. It detects URLs which are not links.
304304
For example:
305305

306306
```rust
307-
#![warn(bare_urls)]
307+
#![warn(rustdoc::bare_urls)] // note: unecessary - warns by default.
308308

309309
/// http://example.org
310310
/// [http://example.net]

0 commit comments

Comments
 (0)