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