diff options
| author | Spencer Imbleau <spencer@imbleau.com> | 2021-05-12 09:52:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-12 09:52:28 -0400 |
| commit | 2b27c82fbb691f6b2d3440535a13780fdf36ee23 (patch) | |
| tree | 2231407b8449ad0e7e4d4b9cf027845eeef2f89e /src | |
| parent | b65bad99f7e9c7c2d9a19a54ff385146f522082c (diff) | |
| download | rust-2b27c82fbb691f6b2d3440535a13780fdf36ee23.tar.gz rust-2b27c82fbb691f6b2d3440535a13780fdf36ee23.zip | |
Clarified all attributes which prompt warnings
All calls which trigger rustdoc warnings and are now properly verbose for consistency. This uses the attribute in the examples which provides the user with more context.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/rustdoc/src/lints.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/rustdoc/src/lints.md b/src/doc/rustdoc/src/lints.md index c494eef1b57..dddff0475ad 100644 --- a/src/doc/rustdoc/src/lints.md +++ b/src/doc/rustdoc/src/lints.md @@ -70,6 +70,8 @@ This lint **warns by default**. This lint detects when [intra-doc links] from pu For example: ```rust +#![warn(private_intra_doc_links)] + /// [private] pub fn public() {} fn private() {} @@ -302,6 +304,8 @@ This lint is **warn-by-default**. It detects URLs which are not links. For example: ```rust +#![warn(bare_urls)] + /// http://example.org /// [http://example.net] pub fn foo() {} |
