Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b307115

Browse files
committed
bless rustdoc-ui
1 parent afa886e commit b307115

36 files changed

+48
-48
lines changed

src/test/rustdoc-ui/bare-urls.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error: this URL is not a hyperlink
44
LL | /// https://somewhere.com
55
| ^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://somewhere.com>`
66
|
7+
= note: bare URLs are not automatically turned into clickable links
78
note: the lint level is defined here
89
--> $DIR/bare-urls.rs:3:9
910
|
1011
LL | #![deny(rustdoc::bare_urls)]
1112
| ^^^^^^^^^^^^^^^^^^
12-
= note: bare URLs are not automatically turned into clickable links
1313

1414
error: this URL is not a hyperlink
1515
--> $DIR/bare-urls.rs:7:5

src/test/rustdoc-ui/check-attr-test.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ error: unknown attribute `compile-fail`. Did you mean `compile_fail`?
88
9 | | /// ```
99
| |_______^
1010
|
11+
= help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
1112
note: the lint level is defined here
1213
--> $DIR/check-attr-test.rs:3:9
1314
|
1415
3 | #![deny(rustdoc::invalid_codeblock_attributes)]
1516
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16-
= help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
1717

1818
error: unknown attribute `compilefail`. Did you mean `compile_fail`?
1919
--> $DIR/check-attr-test.rs:5:1

src/test/rustdoc-ui/check-attr.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ LL | | /// boo
1010
LL | | /// ```
1111
| |_______^
1212
|
13+
= help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
1314
note: the lint level is defined here
1415
--> $DIR/check-attr.rs:1:9
1516
|
1617
LL | #![deny(rustdoc::invalid_codeblock_attributes)]
1718
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18-
= help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
1919

2020
error: unknown attribute `compilefail`. Did you mean `compile_fail`?
2121
--> $DIR/check-attr.rs:3:1

src/test/rustdoc-ui/check-cfg-test.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ warning: unexpected `cfg` condition value
44
LL | #[cfg(feature = "invalid")]
55
| ^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: `#[warn(unexpected_cfgs)]` on by default
87
= note: expected values for `feature` are: test
8+
= note: `#[warn(unexpected_cfgs)]` on by default
99

1010
warning: 1 warning emitted
1111

src/test/rustdoc-ui/check-fail.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ LL | | //! let x = 12;
3232
LL | | //! ```
3333
| |_______^
3434
|
35-
= note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(rustdoc::all)]`
3635
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
36+
= note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(rustdoc::all)]`
3737

3838
error: unknown attribute `testharness`. Did you mean `test_harness`?
3939
--> $DIR/check-fail.rs:16:1

src/test/rustdoc-ui/check.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ LL | pub fn foo() {}
2424

2525
warning: no documentation found for this crate's top-level module
2626
|
27+
= help: The following guide may be of use:
28+
https://doc.rust-lang.org/$CHANNEL/rustdoc/how-to-write-documentation.html
2729
note: the lint level is defined here
2830
--> $DIR/check.rs:10:9
2931
|
3032
LL | #![warn(rustdoc::all)]
3133
| ^^^^^^^^^^^^
3234
= note: `#[warn(rustdoc::missing_crate_level_docs)]` implied by `#[warn(rustdoc::all)]`
33-
= help: The following guide may be of use:
34-
https://doc.rust-lang.org/$CHANNEL/rustdoc/how-to-write-documentation.html
3535

3636
warning: missing code example in this documentation
3737
--> $DIR/check.rs:5:1

src/test/rustdoc-ui/deny-intra-link-resolution-failure.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error: unresolved link to `v2`
44
LL | /// [v2]
55
| ^^ no item named `v2` in scope
66
|
7+
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
78
note: the lint level is defined here
89
--> $DIR/deny-intra-link-resolution-failure.rs:1:9
910
|
1011
LL | #![deny(rustdoc::broken_intra_doc_links)]
1112
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12-
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
1313

1414
error: aborting due to previous error
1515

src/test/rustdoc-ui/diagnostic-width.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error: this URL is not a hyperlink
44
LL | ... a http://link.com
55
| ^^^^^^^^^^^^^^^ help: use an automatic link instead: `<http://link.com>`
66
|
7+
= note: bare URLs are not automatically turned into clickable links
78
note: the lint level is defined here
89
--> $DIR/diagnostic-width.rs:2:9
910
|
1011
LL | ...ny(rustdoc::bare_url...
1112
| ^^^^^^^^^^^^^^^^^^
12-
= note: bare URLs are not automatically turned into clickable links
1313

1414
error: aborting due to previous error
1515

src/test/rustdoc-ui/doc-attr.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ error: unknown `doc` attribute `as_ptr`
44
LL | #[doc(as_ptr)]
55
| ^^^^^^
66
|
7+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8+
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
79
note: the lint level is defined here
810
--> $DIR/doc-attr.rs:2:9
911
|
1012
LL | #![deny(warnings)]
1113
| ^^^^^^^^
1214
= note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]`
13-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14-
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
1515

1616
error: invalid `doc` attribute
1717
--> $DIR/doc-attr.rs:12:7

src/test/rustdoc-ui/doc-include-suggestion.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ warning: unknown `doc` attribute `include`
44
LL | #[doc(include = "external-cross-doc.md")]
55
| ------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-- help: use `doc = include_str!` instead: `#[doc = include_str!("external-cross-doc.md")]`
66
|
7-
= note: `#[warn(invalid_doc_attributes)]` on by default
87
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
98
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
9+
= note: `#[warn(invalid_doc_attributes)]` on by default
1010

1111
warning: 1 warning emitted
1212

0 commit comments

Comments
 (0)