Skip to content

Commit b307115

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

36 files changed

+48
-48
lines changed

Diff for: src/test/rustdoc-ui/bare-urls.stderr

+1-1
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

Diff for: src/test/rustdoc-ui/check-attr-test.stderr

+1-1
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

Diff for: src/test/rustdoc-ui/check-attr.stderr

+1-1
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

Diff for: src/test/rustdoc-ui/check-cfg-test.stderr

+1-1
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

Diff for: src/test/rustdoc-ui/check-fail.stderr

+1-1
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

Diff for: src/test/rustdoc-ui/check.stderr

+2-2
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

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

+1-1
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

Diff for: src/test/rustdoc-ui/diagnostic-width.stderr

+1-1
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

Diff for: src/test/rustdoc-ui/doc-attr.stderr

+2-2
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

Diff for: src/test/rustdoc-ui/doc-include-suggestion.stderr

+1-1
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

Diff for: src/test/rustdoc-ui/doc-spotlight.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ error: unknown `doc` attribute `spotlight`
44
LL | #[doc(spotlight)]
55
| ^^^^^^^^^ help: use `notable_trait` instead
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>
9+
= note: `doc(spotlight)` was renamed to `doc(notable_trait)`
10+
= note: `doc(spotlight)` is now a no-op
711
note: the lint level is defined here
812
--> $DIR/doc-spotlight.rs:2:9
913
|
1014
LL | #![deny(warnings)]
1115
| ^^^^^^^^
1216
= 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>
15-
= note: `doc(spotlight)` was renamed to `doc(notable_trait)`
16-
= note: `doc(spotlight)` is now a no-op
1717

1818
error: aborting due to previous error
1919

Diff for: src/test/rustdoc-ui/doc-test-attr.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ error: `#[doc(test(...)]` takes a list of attributes
44
LL | #![doc(test)]
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-test-attr.rs:2:9
911
|
1012
LL | #![deny(invalid_doc_attributes)]
1113
| ^^^^^^^^^^^^^^^^^^^^^^
12-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13-
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
1414

1515
error: `#[doc(test(...)]` takes a list of attributes
1616
--> $DIR/doc-test-attr.rs:7:8

Diff for: src/test/rustdoc-ui/doctest-edition.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ LL | | //! foo'b'
77
LL | | //! ```
88
| |_______^
99
|
10+
= note: error from rustc: prefix `foo` is unknown
1011
note: the lint level is defined here
1112
--> $DIR/doctest-edition.rs:3:9
1213
|
1314
LL | #![deny(rustdoc::invalid_rust_codeblocks)]
1415
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15-
= note: error from rustc: prefix `foo` is unknown
1616
help: mark blocks that do not contain Rust code as text
1717
|
1818
LL | //! ```text

Diff for: src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ error: unknown lint: `rustdoc::missing_doc_code_examples`
44
LL | #![allow(rustdoc::missing_doc_code_examples)]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7+
= note: the `rustdoc::missing_doc_code_examples` lint is unstable
8+
= note: see issue #101730 <https://github.com/rust-lang/rust/issues/101730> for more information
9+
= help: add `#![feature(rustdoc_missing_doc_code_examples)]` to the crate attributes to enable
710
note: the lint level is defined here
811
--> $DIR/feature-gate-rustdoc_missing_doc_code_examples.rs:1:9
912
|
1013
LL | #![deny(unknown_lints)]
1114
| ^^^^^^^^^^^^^
12-
= note: the `rustdoc::missing_doc_code_examples` lint is unstable
13-
= note: see issue #101730 <https://github.com/rust-lang/rust/issues/101730> for more information
14-
= help: add `#![feature(rustdoc_missing_doc_code_examples)]` to the crate attributes to enable
1515

1616
error: unknown lint: `rustdoc::missing_doc_code_examples`
1717
--> $DIR/feature-gate-rustdoc_missing_doc_code_examples.rs:4:1

Diff for: src/test/rustdoc-ui/ignore-block-help.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ LL | | /// let heart = '❤️';
77
LL | | /// ```
88
| |_______^
99
|
10-
= note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
1110
help: `ignore` code blocks require valid Rust code for syntax highlighting; mark blocks that do not contain Rust code as text: ```text
1211
--> $DIR/ignore-block-help.rs:3:5
1312
|
1413
LL | /// ```ignore (to-prevent-tidy-error)
1514
| ^^^
1615
= note: error from rustc: character literal may only contain one codepoint
16+
= note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
1717

1818
warning: 1 warning emitted
1919

Diff for: src/test/rustdoc-ui/intra-doc/html-as-generics-intra-doc.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error: unresolved link to `NonExistentStruct`
44
LL | /// This [test][NonExistentStruct<i32>] thing!
55
| ^^^^^^^^^^^^^^^^^^^^^^ no item named `NonExistentStruct` in scope
66
|
7+
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
78
note: the lint level is defined here
89
--> $DIR/html-as-generics-intra-doc.rs:2: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: unresolved link to `NonExistentStruct2`
1515
--> $DIR/html-as-generics-intra-doc.rs:17:11

Diff for: src/test/rustdoc-ui/intra-doc/macro-rules-error.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error: unresolved link to `before_but_limited_to_module`
44
LL | /// [before_but_limited_to_module]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `before_but_limited_to_module` in scope
66
|
7+
= note: `macro_rules` named `before_but_limited_to_module` exists in this crate, but it is not in scope at this link's location
78
note: the lint level is defined here
89
--> $DIR/macro-rules-error.rs:5:9
910
|
1011
LL | #![deny(rustdoc::broken_intra_doc_links)]
1112
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12-
= note: `macro_rules` named `before_but_limited_to_module` exists in this crate, but it is not in scope at this link's location
1313

1414
error: unresolved link to `after`
1515
--> $DIR/macro-rules-error.rs:15:6

Diff for: src/test/rustdoc-ui/intra-doc/non-path-primitives.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error: unresolved link to `T`
44
LL | //! [[T]::rotate_left]
55
| ^ no item named `T` in scope
66
|
7+
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
78
note: the lint level is defined here
89
--> $DIR/non-path-primitives.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: unresolved link to `Z`
1515
--> $DIR/non-path-primitives.rs:14:5

Diff for: src/test/rustdoc-ui/intra-doc/private-from-crate-level.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ warning: public documentation for `private_from_crate_level` links to private it
44
LL | //! [my_module]
55
| ^^^^^^^^^ this item is private
66
|
7-
= note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
87
= note: this link will resolve properly if you pass `--document-private-items`
8+
= note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
99

1010
warning: 1 warning emitted
1111

Diff for: src/test/rustdoc-ui/intra-doc/private.private.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ warning: public documentation for `DocMe` links to private item `DontDocMe`
44
LL | /// docs [DontDocMe] [DontDocMe::f] [DontDocMe::x]
55
| ^^^^^^^^^ this item is private
66
|
7-
= note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
87
= note: this link resolves only because you passed `--document-private-items`, but will break without
8+
= note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
99

1010
warning: public documentation for `DocMe` links to private item `DontDocMe::f`
1111
--> $DIR/private.rs:7:23

Diff for: src/test/rustdoc-ui/intra-doc/private.public.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ warning: public documentation for `DocMe` links to private item `DontDocMe`
44
LL | /// docs [DontDocMe] [DontDocMe::f] [DontDocMe::x]
55
| ^^^^^^^^^ this item is private
66
|
7-
= note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
87
= note: this link will resolve properly if you pass `--document-private-items`
8+
= note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
99

1010
warning: public documentation for `DocMe` links to private item `DontDocMe::f`
1111
--> $DIR/private.rs:7:23

Diff for: src/test/rustdoc-ui/intra-doc/span-ice-55723.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error: unresolved link to `i`
44
LL | /// (arr[i])
55
| ^ no item named `i` in scope
66
|
7+
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
78
note: the lint level is defined here
89
--> $DIR/span-ice-55723.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

Diff for: src/test/rustdoc-ui/intra-doc/through-proc-macro.stderr

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

1414
warning: 1 warning emitted
1515

Diff for: src/test/rustdoc-ui/intra-doc/unknown-disambiguator.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ error: unknown disambiguator `foo`
44
LL | //! Linking to [foo@banana] and [`bar@banana!()`].
55
| ^^^
66
|
7+
= note: see https://doc.rust-lang.org/$CHANNEL/rustdoc/linking-to-items-by-name.html#namespaces-and-disambiguators for more info about disambiguators
78
note: the lint level is defined here
89
--> $DIR/unknown-disambiguator.rs:2:9
910
|
1011
LL | #![deny(warnings)]
1112
| ^^^^^^^^
1213
= note: `#[deny(rustdoc::broken_intra_doc_links)]` implied by `#[deny(warnings)]`
13-
= note: see https://doc.rust-lang.org/$CHANNEL/rustdoc/linking-to-items-by-name.html#namespaces-and-disambiguators for more info about disambiguators
1414

1515
error: unknown disambiguator `bar`
1616
--> $DIR/unknown-disambiguator.rs:4:35

Diff for: src/test/rustdoc-ui/intra-doc/unused-extern-crate.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error: unresolved link to `zip`
44
LL | /// See [zip] crate.
55
| ^^^ no item named `zip` in scope
66
|
7+
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
78
note: the lint level is defined here
89
--> $DIR/unused-extern-crate.rs:2: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

Diff for: src/test/rustdoc-ui/intra-doc/warning-crlf.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ warning: unresolved link to `error`
44
LL | /// [error]
55
| ^^^^^ no item named `error` in scope
66
|
7-
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
87
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
8+
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
99

1010
warning: unresolved link to `error1`
1111
--> $DIR/warning-crlf.rs:12:11

Diff for: src/test/rustdoc-ui/invalid-doc-attr.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ error: this attribute can only be applied at the crate level
44
LL | #[doc(test(no_crate_inject))]
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>
9+
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
710
note: the lint level is defined here
811
--> $DIR/invalid-doc-attr.rs:2:9
912
|
1013
LL | #![deny(warnings)]
1114
| ^^^^^^^^
1215
= 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>
15-
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
1616
help: to apply to the crate, use an inner attribute
1717
|
1818
LL | #![doc(test(no_crate_inject))]

Diff for: src/test/rustdoc-ui/invalid-syntax.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ LL | | /// \__________pkt->size___________/ \_result->size_/ \__pkt->si
77
LL | | /// ```
88
| |_______^
99
|
10-
= note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
1110
= note: error from rustc: unknown start of token: \
1211
= note: error from rustc: unknown start of token: \
1312
= note: error from rustc: unknown start of token: \
13+
= note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
1414
help: mark blocks that do not contain Rust code as text
1515
|
1616
LL | /// ```text

Diff for: src/test/rustdoc-ui/issue-74134.private.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ warning: public documentation for `public_item` links to private item `PrivateTy
44
LL | /// [`PrivateType`]
55
| ^^^^^^^^^^^ this item is private
66
|
7-
= note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
87
= note: this link resolves only because you passed `--document-private-items`, but will break without
8+
= note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
99

1010
warning: 1 warning emitted
1111

0 commit comments

Comments
 (0)