Skip to content

Commit d931e2b

Browse files
committed
Rename url-improvements test to bare-urls
The lint used to be called `non-autolinks`, and linted more than just bare URLs. Now, it is called `bare-urls` and only lints against bare URLs. So, `bare-urls` is a better name for the test.
1 parent 2e495d2 commit d931e2b

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/test/rustdoc-ui/url-improvements.stderr renamed to src/test/rustdoc-ui/bare-urls.stderr

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,107 @@
11
error: this URL is not a hyperlink
2-
--> $DIR/url-improvements.rs:3:5
2+
--> $DIR/bare-urls.rs:3:5
33
|
44
LL | /// https://somewhere.com
55
| ^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com>`
66
|
77
note: the lint level is defined here
8-
--> $DIR/url-improvements.rs:1:9
8+
--> $DIR/bare-urls.rs:1:9
99
|
1010
LL | #![deny(rustdoc::bare_urls)]
1111
| ^^^^^^^^^^^^^^^^^^
1212

1313
error: this URL is not a hyperlink
14-
--> $DIR/url-improvements.rs:5:5
14+
--> $DIR/bare-urls.rs:5:5
1515
|
1616
LL | /// https://somewhere.com/a
1717
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com/a>`
1818

1919
error: this URL is not a hyperlink
20-
--> $DIR/url-improvements.rs:7:5
20+
--> $DIR/bare-urls.rs:7:5
2121
|
2222
LL | /// https://www.somewhere.com
2323
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://www.somewhere.com>`
2424

2525
error: this URL is not a hyperlink
26-
--> $DIR/url-improvements.rs:9:5
26+
--> $DIR/bare-urls.rs:9:5
2727
|
2828
LL | /// https://www.somewhere.com/a
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://www.somewhere.com/a>`
3030

3131
error: this URL is not a hyperlink
32-
--> $DIR/url-improvements.rs:11:5
32+
--> $DIR/bare-urls.rs:11:5
3333
|
3434
LL | /// https://subdomain.example.com
3535
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://subdomain.example.com>`
3636

3737
error: this URL is not a hyperlink
38-
--> $DIR/url-improvements.rs:13:5
38+
--> $DIR/bare-urls.rs:13:5
3939
|
4040
LL | /// https://somewhere.com?
4141
| ^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com?>`
4242

4343
error: this URL is not a hyperlink
44-
--> $DIR/url-improvements.rs:15:5
44+
--> $DIR/bare-urls.rs:15:5
4545
|
4646
LL | /// https://somewhere.com/a?
4747
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com/a?>`
4848

4949
error: this URL is not a hyperlink
50-
--> $DIR/url-improvements.rs:17:5
50+
--> $DIR/bare-urls.rs:17:5
5151
|
5252
LL | /// https://somewhere.com?hello=12
5353
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com?hello=12>`
5454

5555
error: this URL is not a hyperlink
56-
--> $DIR/url-improvements.rs:19:5
56+
--> $DIR/bare-urls.rs:19:5
5757
|
5858
LL | /// https://somewhere.com/a?hello=12
5959
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com/a?hello=12>`
6060

6161
error: this URL is not a hyperlink
62-
--> $DIR/url-improvements.rs:21:5
62+
--> $DIR/bare-urls.rs:21:5
6363
|
6464
LL | /// https://example.com?hello=12#xyz
6565
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://example.com?hello=12#xyz>`
6666

6767
error: this URL is not a hyperlink
68-
--> $DIR/url-improvements.rs:23:5
68+
--> $DIR/bare-urls.rs:23:5
6969
|
7070
LL | /// https://example.com/a?hello=12#xyz
7171
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://example.com/a?hello=12#xyz>`
7272

7373
error: this URL is not a hyperlink
74-
--> $DIR/url-improvements.rs:25:5
74+
--> $DIR/bare-urls.rs:25:5
7575
|
7676
LL | /// https://example.com#xyz
7777
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://example.com#xyz>`
7878

7979
error: this URL is not a hyperlink
80-
--> $DIR/url-improvements.rs:27:5
80+
--> $DIR/bare-urls.rs:27:5
8181
|
8282
LL | /// https://example.com/a#xyz
8383
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://example.com/a#xyz>`
8484

8585
error: this URL is not a hyperlink
86-
--> $DIR/url-improvements.rs:29:5
86+
--> $DIR/bare-urls.rs:29:5
8787
|
8888
LL | /// https://somewhere.com?hello=12&bye=11
8989
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com?hello=12&bye=11>`
9090

9191
error: this URL is not a hyperlink
92-
--> $DIR/url-improvements.rs:31:5
92+
--> $DIR/bare-urls.rs:31:5
9393
|
9494
LL | /// https://somewhere.com/a?hello=12&bye=11
9595
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com/a?hello=12&bye=11>`
9696

9797
error: this URL is not a hyperlink
98-
--> $DIR/url-improvements.rs:33:5
98+
--> $DIR/bare-urls.rs:33:5
9999
|
100100
LL | /// https://somewhere.com?hello=12&bye=11#xyz
101101
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com?hello=12&bye=11#xyz>`
102102

103103
error: this URL is not a hyperlink
104-
--> $DIR/url-improvements.rs:35:10
104+
--> $DIR/bare-urls.rs:35:10
105105
|
106106
LL | /// hey! https://somewhere.com/a?hello=12&bye=11#xyz
107107
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com/a?hello=12&bye=11#xyz>`

0 commit comments

Comments
 (0)