summary refs log tree commit diff
path: root/src/doc/rustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-10-14 15:11:55 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-11-05 10:22:08 +0100
commit7f839b2ece86b3b5db89673fc402348c71db42f4 (patch)
tree393aafabaccc58958994077c874a23f901aa1d94 /src/doc/rustdoc
parentf467b8d77c7b991ce214e0e5ff9b13c01812c8a7 (diff)
downloadrust-7f839b2ece86b3b5db89673fc402348c71db42f4.tar.gz
rust-7f839b2ece86b3b5db89673fc402348c71db42f4.zip
Improve automatic_links globally
Diffstat (limited to 'src/doc/rustdoc')
-rw-r--r--src/doc/rustdoc/src/lints.md13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/doc/rustdoc/src/lints.md b/src/doc/rustdoc/src/lints.md
index a85aa882af8..68ea828bfc1 100644
--- a/src/doc/rustdoc/src/lints.md
+++ b/src/doc/rustdoc/src/lints.md
@@ -288,12 +288,10 @@ warning: 2 warnings emitted
 
 ## automatic_links
 
-This link is **allowed by default** and is **nightly-only**. It detects links
-which could use the "automatic" link syntax. For example:
+This lint is **nightly-only** and **warns by default**. It detects links which
+could use the "automatic" link syntax. For example:
 
 ```rust
-#![warn(automatic_links)]
-
 /// http://hello.rs
 /// [http://a.com](http://a.com)
 /// [http://b.com]
@@ -305,17 +303,12 @@ pub fn foo() {}
 Which will give:
 
 ```text
-warning: won't be a link as is
+warning: this URL is not a hyperlink
  --> foo.rs:3:5
   |
 3 | /// http://hello.rs
   |     ^^^^^^^^^^^^^^^ help: use an automatic link instead: `<http://hello.rs>`
   |
-note: the lint level is defined here
- --> foo.rs:1:9
-  |
-1 | #![warn(automatic_links)]
-  |         ^^^^^^^^^^^^^^^
 
 warning: unneeded long form for URL
  --> foo.rs:4:5