@@ -2,134 +2,115 @@ error: unresolved link to `path::to::nonexistent::module`
22 --> $DIR/intra-link-errors.rs:7:6
33 |
44LL | /// [path::to::nonexistent::module]
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `path` in `intra_link_errors`
66 |
77note: the lint level is defined here
88 --> $DIR/intra-link-errors.rs:1:9
99 |
1010LL | #![deny(broken_intra_doc_links)]
1111 | ^^^^^^^^^^^^^^^^^^^^^^
12- = note: no item named `path` is in scope
1312
1413error: unresolved link to `path::to::nonexistent::macro`
1514 --> $DIR/intra-link-errors.rs:11:6
1615 |
1716LL | /// [path::to::nonexistent::macro!]
18- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19- |
20- = note: no item named `path` is in scope
17+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `path` in `intra_link_errors`
2118
2219error: unresolved link to `path::to::nonexistent::type`
2320 --> $DIR/intra-link-errors.rs:15:6
2421 |
2522LL | /// [type@path::to::nonexistent::type]
26- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27- |
28- = note: no item named `path` is in scope
23+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `path` in `intra_link_errors`
2924
3025error: unresolved link to `std::io::not::here`
3126 --> $DIR/intra-link-errors.rs:19:6
3227 |
3328LL | /// [std::io::not::here]
34- | ^^^^^^^^^^^^^^^^^^
35- |
36- = note: the module `io` has no inner item named `not`
29+ | ^^^^^^^^^^^^^^^^^^ the module `io` has no inner item named `not`
3730
3831error: unresolved link to `std::io::Error::x`
3932 --> $DIR/intra-link-errors.rs:23:6
4033 |
4134LL | /// [std::io::Error::x]
42- | ^^^^^^^^^^^^^^^^^
43- |
44- = note: the struct `Error` has no field or associated item named `x`
35+ | ^^^^^^^^^^^^^^^^^ the struct `Error` has no field or associated item named `x`
4536
4637error: unresolved link to `std::io::ErrorKind::x`
4738 --> $DIR/intra-link-errors.rs:27:6
4839 |
4940LL | /// [std::io::ErrorKind::x]
50- | ^^^^^^^^^^^^^^^^^^^^^
51- |
52- = note: the enum `ErrorKind` has no variant or associated item named `x`
41+ | ^^^^^^^^^^^^^^^^^^^^^ the enum `ErrorKind` has no variant or associated item named `x`
5342
5443error: unresolved link to `f::A`
5544 --> $DIR/intra-link-errors.rs:31:6
5645 |
5746LL | /// [f::A]
58- | ^^^^
59- |
60- = note: `f` is a function, not a module or type, and cannot have associated items
47+ | ^^^^ `f` is a function, not a module or type, and cannot have associated items
6148
6249error: unresolved link to `S::A`
6350 --> $DIR/intra-link-errors.rs:35:6
6451 |
6552LL | /// [S::A]
66- | ^^^^
67- |
68- = note: the struct `S` has no field or associated item named `A`
53+ | ^^^^ the struct `S` has no field or associated item named `A`
6954
7055error: unresolved link to `S::fmt`
7156 --> $DIR/intra-link-errors.rs:39:6
7257 |
7358LL | /// [S::fmt]
74- | ^^^^^^
75- |
76- = note: the struct `S` has no field or associated item named `fmt`
59+ | ^^^^^^ the struct `S` has no field or associated item named `fmt`
7760
7861error: unresolved link to `E::D`
7962 --> $DIR/intra-link-errors.rs:43:6
8063 |
8164LL | /// [E::D]
82- | ^^^^
83- |
84- = note: the enum `E` has no variant or associated item named `D`
65+ | ^^^^ the enum `E` has no variant or associated item named `D`
8566
8667error: unresolved link to `u8::not_found`
8768 --> $DIR/intra-link-errors.rs:47:6
8869 |
8970LL | /// [u8::not_found]
90- | ^^^^^^^^^^^^^
91- |
92- = note: the builtin type `u8` does not have an associated item named `not_found`
71+ | ^^^^^^^^^^^^^ the builtin type `u8` does not have an associated item named `not_found`
9372
9473error: unresolved link to `S`
9574 --> $DIR/intra-link-errors.rs:51:6
9675 |
9776LL | /// [S!]
98- | ^^ help: to link to the struct, prefix with `struct@`: `struct@S`
99- |
100- = note: this link resolves to the struct `S`, which is not in the macro namespace
77+ | ^^
78+ | |
79+ | this link resolves to the struct `S`, which is not in the macro namespace
80+ | help: to link to the struct, prefix with `struct@`: `struct@S`
10181
10282error: unresolved link to `T::g`
10383 --> $DIR/intra-link-errors.rs:69:6
10484 |
10585LL | /// [type@T::g]
106- | ^^^^^^^^^ help: to link to the associated function, add parentheses: `T::g()`
107- |
108- = note: this link resolves to the associated function `g`, which is not in the type namespace
86+ | ^^^^^^^^^
87+ | |
88+ | this link resolves to the associated function `g`, which is not in the type namespace
89+ | help: to link to the associated function, add parentheses: `T::g()`
10990
11091error: unresolved link to `T::h`
11192 --> $DIR/intra-link-errors.rs:74:6
11293 |
11394LL | /// [T::h!]
114- | ^^^^^
115- |
116- = note: the trait `T` has no macro named `h`
95+ | ^^^^^ the trait `T` has no macro named `h`
11796
11897error: unresolved link to `S::h`
11998 --> $DIR/intra-link-errors.rs:61:6
12099 |
121100LL | /// [type@S::h]
122- | ^^^^^^^^^ help: to link to the associated function, add parentheses: `S::h()`
123- |
124- = note: this link resolves to the associated function `h`, which is not in the type namespace
101+ | ^^^^^^^^^
102+ | |
103+ | this link resolves to the associated function `h`, which is not in the type namespace
104+ | help: to link to the associated function, add parentheses: `S::h()`
125105
126106error: unresolved link to `m`
127107 --> $DIR/intra-link-errors.rs:81:6
128108 |
129109LL | /// [m()]
130- | ^^^ help: to link to the macro, add an exclamation mark: `m!`
131- |
132- = note: this link resolves to the macro `m`, which is not in the value namespace
110+ | ^^^
111+ | |
112+ | this link resolves to the macro `m`, which is not in the value namespace
113+ | help: to link to the macro, add an exclamation mark: `m!`
133114
134115error: aborting due to 16 previous errors
135116
0 commit comments