@@ -2,7 +2,7 @@ error: unresolved link to `path::to::nonexistent::module`
2
2
--> $DIR/intra-link-errors.rs:7:6
3
3
|
4
4
LL | /// [path::to::nonexistent::module]
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `path` in `intra_link_errors `
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
6
6
|
7
7
note: the lint level is defined here
8
8
--> $DIR/intra-link-errors.rs:1:9
@@ -14,64 +14,91 @@ error: unresolved link to `path::to::nonexistent::macro`
14
14
--> $DIR/intra-link-errors.rs:11:6
15
15
|
16
16
LL | /// [path::to::nonexistent::macro!]
17
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `path` in `intra_link_errors `
17
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
18
18
19
19
error: unresolved link to `path::to::nonexistent::type`
20
20
--> $DIR/intra-link-errors.rs:15:6
21
21
|
22
22
LL | /// [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`
24
24
25
25
error: unresolved link to `std::io::not::here`
26
26
--> $DIR/intra-link-errors.rs:19:6
27
27
|
28
28
LL | /// [std::io::not::here]
29
- | ^^^^^^^^^^^^^^^^^^ the module `io` has no inner item named `not`
29
+ | ^^^^^^^^^^^^^^^^^^ the module `io` contains no item named `not`
30
30
31
- error: unresolved link to `std::io::Error::x `
31
+ error: unresolved link to `std::io::not::here `
32
32
--> $DIR/intra-link-errors.rs:23:6
33
33
|
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
+ |
34
40
LL | /// [std::io::Error::x]
35
41
| ^^^^^^^^^^^^^^^^^ the struct `Error` has no field or associated item named `x`
36
42
37
43
error: unresolved link to `std::io::ErrorKind::x`
38
- --> $DIR/intra-link-errors.rs:27 :6
44
+ --> $DIR/intra-link-errors.rs:31 :6
39
45
|
40
46
LL | /// [std::io::ErrorKind::x]
41
47
| ^^^^^^^^^^^^^^^^^^^^^ the enum `ErrorKind` has no variant or associated item named `x`
42
48
43
49
error: unresolved link to `f::A`
44
- --> $DIR/intra-link-errors.rs:31 :6
50
+ --> $DIR/intra-link-errors.rs:35 :6
45
51
|
46
52
LL | /// [f::A]
47
53
| ^^^^ `f` is a function, not a module or type, and cannot have associated items
48
54
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
+
49
61
error: unresolved link to `S::A`
50
- --> $DIR/intra-link-errors.rs:35 :6
62
+ --> $DIR/intra-link-errors.rs:43 :6
51
63
|
52
64
LL | /// [S::A]
53
65
| ^^^^ the struct `S` has no field or associated item named `A`
54
66
55
67
error: unresolved link to `S::fmt`
56
- --> $DIR/intra-link-errors.rs:39 :6
68
+ --> $DIR/intra-link-errors.rs:47 :6
57
69
|
58
70
LL | /// [S::fmt]
59
71
| ^^^^^^ the struct `S` has no field or associated item named `fmt`
60
72
61
73
error: unresolved link to `E::D`
62
- --> $DIR/intra-link-errors.rs:43 :6
74
+ --> $DIR/intra-link-errors.rs:51 :6
63
75
|
64
76
LL | /// [E::D]
65
77
| ^^^^ the enum `E` has no variant or associated item named `D`
66
78
67
79
error: unresolved link to `u8::not_found`
68
- --> $DIR/intra-link-errors.rs:47 :6
80
+ --> $DIR/intra-link-errors.rs:55 :6
69
81
|
70
82
LL | /// [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()`
72
99
73
100
error: unresolved link to `S`
74
- --> $DIR/intra-link-errors.rs:51 :6
101
+ --> $DIR/intra-link-errors.rs:68 :6
75
102
|
76
103
LL | /// [S!]
77
104
| ^^
@@ -80,7 +107,7 @@ LL | /// [S!]
80
107
| help: to link to the struct, prefix with `struct@`: `struct@S`
81
108
82
109
error: unresolved link to `T::g`
83
- --> $DIR/intra-link-errors.rs:69 :6
110
+ --> $DIR/intra-link-errors.rs:86 :6
84
111
|
85
112
LL | /// [type@T::g]
86
113
| ^^^^^^^^^
@@ -89,13 +116,13 @@ LL | /// [type@T::g]
89
116
| help: to link to the associated function, add parentheses: `T::g()`
90
117
91
118
error: unresolved link to `T::h`
92
- --> $DIR/intra-link-errors.rs:74 :6
119
+ --> $DIR/intra-link-errors.rs:91 :6
93
120
|
94
121
LL | /// [T::h!]
95
122
| ^^^^^ the trait `T` has no macro named `h`
96
123
97
124
error: unresolved link to `S::h`
98
- --> $DIR/intra-link-errors.rs:61 :6
125
+ --> $DIR/intra-link-errors.rs:78 :6
99
126
|
100
127
LL | /// [type@S::h]
101
128
| ^^^^^^^^^
@@ -104,13 +131,13 @@ LL | /// [type@S::h]
104
131
| help: to link to the associated function, add parentheses: `S::h()`
105
132
106
133
error: unresolved link to `m`
107
- --> $DIR/intra-link-errors.rs:81 :6
134
+ --> $DIR/intra-link-errors.rs:98 :6
108
135
|
109
136
LL | /// [m()]
110
137
| ^^^
111
138
| |
112
139
| this link resolves to the macro `m`, which is not in the value namespace
113
140
| help: to link to the macro, add an exclamation mark: `m!`
114
141
115
- error: aborting due to 16 previous errors
142
+ error: aborting due to 20 previous errors
116
143
0 commit comments