@@ -2,94 +2,103 @@ error: unresolved link to `path::to::nonexistent::module`
22 --> $DIR/intra-link-errors.rs:7:6
33 |
44LL | /// [path::to::nonexistent::module]
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ there is no item named `path` in scope
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+ = help: did you mean to import `path`?
1213
1314error: unresolved link to `path::to::nonexistent::macro`
14- --> $DIR/intra-link-errors.rs:11 :6
15+ --> $DIR/intra-link-errors.rs:12 :6
1516 |
1617LL | /// [path::to::nonexistent::macro!]
17- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
18+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ there is no item named `path` in scope
19+ |
20+ = help: did you mean to import `path`?
1821
1922error: unresolved link to `path::to::nonexistent::type`
20- --> $DIR/intra-link-errors.rs:15 :6
23+ --> $DIR/intra-link-errors.rs:17 :6
2124 |
2225LL | /// [type@path::to::nonexistent::type]
23- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
26+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ there is no item named `path` in scope
27+ |
28+ = help: did you mean to import `path`?
2429
2530error: unresolved link to `std::io::not::here`
26- --> $DIR/intra-link-errors.rs:19 :6
31+ --> $DIR/intra-link-errors.rs:22 :6
2732 |
2833LL | /// [std::io::not::here]
29- | ^^^^^^^^^^^^^^^^^^ the module `io` contains no item named `not`
34+ | ^^^^^^^^^^^^^^^^^^ there is no item named `not` in scope
35+ |
36+ = help: did you mean to import `not`?
3037
3138error: unresolved link to `std::io::not::here`
32- --> $DIR/intra-link-errors.rs:23 :6
39+ --> $DIR/intra-link-errors.rs:27 :6
3340 |
3441LL | /// [type@std::io::not::here]
35- | ^^^^^^^^^^^^^^^^^^^^^^^ the module `io` contains no item named `not`
42+ | ^^^^^^^^^^^^^^^^^^^^^^^ there is no item named `not` in scope
43+ |
44+ = help: did you mean to import `not`?
3645
3746error: unresolved link to `std::io::Error::x`
38- --> $DIR/intra-link-errors.rs:27 :6
47+ --> $DIR/intra-link-errors.rs:32 :6
3948 |
4049LL | /// [std::io::Error::x]
4150 | ^^^^^^^^^^^^^^^^^ the struct `Error` has no field or associated item named `x`
4251
4352error: unresolved link to `std::io::ErrorKind::x`
44- --> $DIR/intra-link-errors.rs:31 :6
53+ --> $DIR/intra-link-errors.rs:36 :6
4554 |
4655LL | /// [std::io::ErrorKind::x]
4756 | ^^^^^^^^^^^^^^^^^^^^^ the enum `ErrorKind` has no variant or associated item named `x`
4857
4958error: unresolved link to `f::A`
50- --> $DIR/intra-link-errors.rs:35 :6
59+ --> $DIR/intra-link-errors.rs:40 :6
5160 |
5261LL | /// [f::A]
5362 | ^^^^ `f` is a function, not a module or type, and cannot have associated items
5463
5564error: unresolved link to `f::A`
56- --> $DIR/intra-link-errors.rs:39 :6
65+ --> $DIR/intra-link-errors.rs:44 :6
5766 |
5867LL | /// [f::A!]
5968 | ^^^^^ `f` is a function, not a module or type, and cannot have associated items
6069
6170error: unresolved link to `S::A`
62- --> $DIR/intra-link-errors.rs:43 :6
71+ --> $DIR/intra-link-errors.rs:48 :6
6372 |
6473LL | /// [S::A]
6574 | ^^^^ the struct `S` has no field or associated item named `A`
6675
6776error: unresolved link to `S::fmt`
68- --> $DIR/intra-link-errors.rs:47 :6
77+ --> $DIR/intra-link-errors.rs:52 :6
6978 |
7079LL | /// [S::fmt]
7180 | ^^^^^^ the struct `S` has no field or associated item named `fmt`
7281
7382error: unresolved link to `E::D`
74- --> $DIR/intra-link-errors.rs:51 :6
83+ --> $DIR/intra-link-errors.rs:56 :6
7584 |
7685LL | /// [E::D]
7786 | ^^^^ the enum `E` has no variant or associated item named `D`
7887
7988error: unresolved link to `u8::not_found`
80- --> $DIR/intra-link-errors.rs:55 :6
89+ --> $DIR/intra-link-errors.rs:60 :6
8190 |
8291LL | /// [u8::not_found]
8392 | ^^^^^^^^^^^^^ the builtin type `u8` has no associated item named `not_found`
8493
8594error: unresolved link to `std::primitive::u8::not_found`
86- --> $DIR/intra-link-errors.rs:59 :6
95+ --> $DIR/intra-link-errors.rs:64 :6
8796 |
8897LL | /// [std::primitive::u8::not_found]
8998 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the builtin type `u8` has no associated item named `not_found`
9099
91100error: unresolved link to `Vec::into_iter`
92- --> $DIR/intra-link-errors.rs:63 :6
101+ --> $DIR/intra-link-errors.rs:68 :6
93102 |
94103LL | /// [type@Vec::into_iter]
95104 | ^^^^^^^^^^^^^^^^^^^
@@ -98,7 +107,7 @@ LL | /// [type@Vec::into_iter]
98107 | help: to link to the associated function, add parentheses: `Vec::into_iter()`
99108
100109error: unresolved link to `S`
101- --> $DIR/intra-link-errors.rs:68 :6
110+ --> $DIR/intra-link-errors.rs:73 :6
102111 |
103112LL | /// [S!]
104113 | ^^
@@ -107,7 +116,7 @@ LL | /// [S!]
107116 | help: to link to the struct, prefix with `struct@`: `struct@S`
108117
109118error: unresolved link to `T::g`
110- --> $DIR/intra-link-errors.rs:86 :6
119+ --> $DIR/intra-link-errors.rs:91 :6
111120 |
112121LL | /// [type@T::g]
113122 | ^^^^^^^^^
@@ -116,13 +125,13 @@ LL | /// [type@T::g]
116125 | help: to link to the associated function, add parentheses: `T::g()`
117126
118127error: unresolved link to `T::h`
119- --> $DIR/intra-link-errors.rs:91 :6
128+ --> $DIR/intra-link-errors.rs:96 :6
120129 |
121130LL | /// [T::h!]
122131 | ^^^^^ the trait `T` has no macro named `h`
123132
124133error: unresolved link to `S::h`
125- --> $DIR/intra-link-errors.rs:78 :6
134+ --> $DIR/intra-link-errors.rs:83 :6
126135 |
127136LL | /// [type@S::h]
128137 | ^^^^^^^^^
@@ -131,7 +140,7 @@ LL | /// [type@S::h]
131140 | help: to link to the associated function, add parentheses: `S::h()`
132141
133142error: unresolved link to `m`
134- --> $DIR/intra-link-errors.rs:98 :6
143+ --> $DIR/intra-link-errors.rs:103 :6
135144 |
136145LL | /// [m()]
137146 | ^^^
0 commit comments