From 2b27c82fbb691f6b2d3440535a13780fdf36ee23 Mon Sep 17 00:00:00 2001 From: Spencer Imbleau Date: Wed, 12 May 2021 09:52:28 -0400 Subject: [PATCH] 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. --- src/doc/rustdoc/src/lints.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/doc/rustdoc/src/lints.md b/src/doc/rustdoc/src/lints.md index c494eef1b570..dddff0475ad5 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() {}