@@ -2,7 +2,7 @@ error: unresolved link to `path::to::nonexistent::module`
22 --> $DIR/intra-link-errors.rs:7:6
33 |
44LL | /// [path::to::nonexistent::module]
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `path` in `intra_link_errors `
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
66 |
77note: the lint level is defined here
88 --> $DIR/intra-link-errors.rs:1:9
@@ -14,64 +14,91 @@ error: unresolved link to `path::to::nonexistent::macro`
1414 --> $DIR/intra-link-errors.rs:11:6
1515 |
1616LL | /// [path::to::nonexistent::macro!]
17- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `path` in `intra_link_errors `
17+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
1818
1919error: unresolved link to `path::to::nonexistent::type`
2020 --> $DIR/intra-link-errors.rs:15:6
2121 |
2222LL | /// [type@path::to::nonexistent::type]
23- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `path` in `intra_link_errors `
23+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
2424
2525error: unresolved link to `std::io::not::here`
2626 --> $DIR/intra-link-errors.rs:19:6
2727 |
2828LL | /// [std::io::not::here]
29- | ^^^^^^^^^^^^^^^^^^ the module `io` has no inner item named `not`
29+ | ^^^^^^^^^^^^^^^^^^ the module `io` contains no item named `not`
3030
31- error: unresolved link to `std::io::Error::x `
31+ error: unresolved link to `std::io::not::here `
3232 --> $DIR/intra-link-errors.rs:23:6
3333 |
34+ LL | /// [type@std::io::not::here]
35+ | ^^^^^^^^^^^^^^^^^^^^^^^ the module `io` contains no item named `not`
36+
37+ error: unresolved link to `std::io::Error::x`
38+ --> $DIR/intra-link-errors.rs:27:6
39+ |
3440LL | /// [std::io::Error::x]
3541 | ^^^^^^^^^^^^^^^^^ the struct `Error` has no field or associated item named `x`
3642
3743error: unresolved link to `std::io::ErrorKind::x`
38- --> $DIR/intra-link-errors.rs:27 :6
44+ --> $DIR/intra-link-errors.rs:31 :6
3945 |
4046LL | /// [std::io::ErrorKind::x]
4147 | ^^^^^^^^^^^^^^^^^^^^^ the enum `ErrorKind` has no variant or associated item named `x`
4248
4349error: unresolved link to `f::A`
44- --> $DIR/intra-link-errors.rs:31 :6
50+ --> $DIR/intra-link-errors.rs:35 :6
4551 |
4652LL | /// [f::A]
4753 | ^^^^ `f` is a function, not a module or type, and cannot have associated items
4854
55+ error: unresolved link to `f::A`
56+ --> $DIR/intra-link-errors.rs:39:6
57+ |
58+ LL | /// [f::A!]
59+ | ^^^^^ `f` is a function, not a module or type, and cannot have associated items
60+
4961error: unresolved link to `S::A`
50- --> $DIR/intra-link-errors.rs:35 :6
62+ --> $DIR/intra-link-errors.rs:43 :6
5163 |
5264LL | /// [S::A]
5365 | ^^^^ the struct `S` has no field or associated item named `A`
5466
5567error: unresolved link to `S::fmt`
56- --> $DIR/intra-link-errors.rs:39 :6
68+ --> $DIR/intra-link-errors.rs:47 :6
5769 |
5870LL | /// [S::fmt]
5971 | ^^^^^^ the struct `S` has no field or associated item named `fmt`
6072
6173error: unresolved link to `E::D`
62- --> $DIR/intra-link-errors.rs:43 :6
74+ --> $DIR/intra-link-errors.rs:51 :6
6375 |
6476LL | /// [E::D]
6577 | ^^^^ the enum `E` has no variant or associated item named `D`
6678
6779error: unresolved link to `u8::not_found`
68- --> $DIR/intra-link-errors.rs:47 :6
80+ --> $DIR/intra-link-errors.rs:55 :6
6981 |
7082LL | /// [u8::not_found]
71- | ^^^^^^^^^^^^^ the builtin type `u8` does not have an associated item named `not_found`
83+ | ^^^^^^^^^^^^^ the builtin type `u8` has no associated item named `not_found`
84+
85+ error: unresolved link to `std::primitive::u8::not_found`
86+ --> $DIR/intra-link-errors.rs:59:6
87+ |
88+ LL | /// [std::primitive::u8::not_found]
89+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the builtin type `u8` has no associated item named `not_found`
90+
91+ error: unresolved link to `Vec::into_iter`
92+ --> $DIR/intra-link-errors.rs:63:6
93+ |
94+ LL | /// [type@Vec::into_iter]
95+ | ^^^^^^^^^^^^^^^^^^^
96+ | |
97+ | this link resolves to the associated function `into_iter`, which is not in the type namespace
98+ | help: to link to the associated function, add parentheses: `Vec::into_iter()`
7299
73100error: unresolved link to `S`
74- --> $DIR/intra-link-errors.rs:51 :6
101+ --> $DIR/intra-link-errors.rs:68 :6
75102 |
76103LL | /// [S!]
77104 | ^^
@@ -80,7 +107,7 @@ LL | /// [S!]
80107 | help: to link to the struct, prefix with `struct@`: `struct@S`
81108
82109error: unresolved link to `T::g`
83- --> $DIR/intra-link-errors.rs:69 :6
110+ --> $DIR/intra-link-errors.rs:86 :6
84111 |
85112LL | /// [type@T::g]
86113 | ^^^^^^^^^
@@ -89,13 +116,13 @@ LL | /// [type@T::g]
89116 | help: to link to the associated function, add parentheses: `T::g()`
90117
91118error: unresolved link to `T::h`
92- --> $DIR/intra-link-errors.rs:74 :6
119+ --> $DIR/intra-link-errors.rs:91 :6
93120 |
94121LL | /// [T::h!]
95122 | ^^^^^ the trait `T` has no macro named `h`
96123
97124error: unresolved link to `S::h`
98- --> $DIR/intra-link-errors.rs:61 :6
125+ --> $DIR/intra-link-errors.rs:78 :6
99126 |
100127LL | /// [type@S::h]
101128 | ^^^^^^^^^
@@ -104,13 +131,13 @@ LL | /// [type@S::h]
104131 | help: to link to the associated function, add parentheses: `S::h()`
105132
106133error: unresolved link to `m`
107- --> $DIR/intra-link-errors.rs:81 :6
134+ --> $DIR/intra-link-errors.rs:98 :6
108135 |
109136LL | /// [m()]
110137 | ^^^
111138 | |
112139 | this link resolves to the macro `m`, which is not in the value namespace
113140 | help: to link to the macro, add an exclamation mark: `m!`
114141
115- error: aborting due to 16 previous errors
142+ error: aborting due to 20 previous errors
116143
0 commit comments