about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-03-27 23:35:02 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-04-05 04:13:34 -0400
commitef4e5b9ecb10480cd87bd7875e4169ca5edeb0fd (patch)
tree7849b50f935a5dc1b7fda7b1103ca509ac63e367 /src/doc
parent6f89468fc513eb12ef8a1137a70fab8bb9f50f14 (diff)
downloadrust-ef4e5b9ecb10480cd87bd7875e4169ca5edeb0fd.tar.gz
rust-ef4e5b9ecb10480cd87bd7875e4169ca5edeb0fd.zip
Rename non_autolinks -> bare_urls
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustdoc/src/lints.md23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/doc/rustdoc/src/lints.md b/src/doc/rustdoc/src/lints.md
index 174db711bce..7a3afb2cfb8 100644
--- a/src/doc/rustdoc/src/lints.md
+++ b/src/doc/rustdoc/src/lints.md
@@ -294,17 +294,14 @@ warning: unclosed HTML tag `h1`
 warning: 2 warnings emitted
 ```
 
-## non_autolinks
+## bare_urls
 
-This lint is **nightly-only** and **warns by default**. It detects links which
-could use the "automatic" link syntax. For example:
+This lint is **nightly-only** and **warns by default**. It detects URLs which are not links.
+For example:
 
 ```rust
 /// http://example.org
-/// [http://example.com](http://example.com)
 /// [http://example.net]
-///
-/// [http://example.com]: http://example.com
 pub fn foo() {}
 ```
 
@@ -312,22 +309,18 @@ Which will give:
 
 ```text
 warning: this URL is not a hyperlink
- --> foo.rs:1:5
+ --> links.rs:1:5
   |
 1 | /// http://example.org
   |     ^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<http://example.org>`
   |
-  = note: `#[warn(rustdoc::non_autolinks)]` on by default
-
-warning: unneeded long form for URL
- --> foo.rs:2:5
-  |
-2 | /// [http://example.com](http://example.com)
-  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<http://example.com>`
+  = note: `#[warn(rustdoc::bare_urls)]` on by default
 
 warning: this URL is not a hyperlink
- --> foo.rs:3:6
+ --> links.rs:3:6
   |
 3 | /// [http://example.net]
   |      ^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<http://example.net>`
+
+warning: 2 warnings emitted
 ```