1
- error: unresolved link to `std::io::oops `
2
- --> $DIR/intra-link-errors.rs:4 :6
1
+ error: unresolved link to `path::to::nonexistent::module `
2
+ --> $DIR/intra-link-errors.rs:8 :6
3
3
|
4
- LL | //! [std::io::oops ]
5
- | ^^^^^^^^^^^^^
4
+ LL | /// [path::to::nonexistent::module ]
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
- = note: this link resolves to the crate `std`, which is not an enum
13
- = note: if this were an enum, it might have a variant which resolved
14
- = note: this link partially resolves to the module `io`
15
- = note: `io` has no field, variant, or associated item named `oops`
16
-
17
- error: unresolved link to `std::io::oops::not::here`
18
- --> $DIR/intra-link-errors.rs:5:6
19
- |
20
- LL | //! [std::io::oops::not::here]
21
- | ^^^^^^^^^^^^^^^^^^^^^^^^
22
- |
23
- = note: no item named `std::io::oops::not` is in scope
24
- = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
25
-
26
- error: unresolved link to `path::to::nonexistent::module`
27
- --> $DIR/intra-link-errors.rs:11:6
28
- |
29
- LL | /// [path::to::nonexistent::module]
30
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
- |
32
12
= note: no item named `path::to::nonexistent` is in scope
33
13
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
34
14
35
15
error: unresolved link to `f::A`
36
- --> $DIR/intra-link-errors.rs:17 :6
16
+ --> $DIR/intra-link-errors.rs:14 :6
37
17
|
38
18
LL | /// [f::A]
39
19
| ^^^^
@@ -42,58 +22,58 @@ LL | /// [f::A]
42
22
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
43
23
44
24
error: unresolved link to `S::A`
45
- --> $DIR/intra-link-errors.rs:22 :6
25
+ --> $DIR/intra-link-errors.rs:19 :6
46
26
|
47
27
LL | /// [S::A]
48
28
| ^^^^
49
29
|
50
30
= note: this link partially resolves to the struct `S`
51
- = note: `S` has no field, variant, or associated item named `A `
31
+ = note: no `A` in `S `
52
32
53
33
error: unresolved link to `S::fmt`
54
- --> $DIR/intra-link-errors.rs:27 :6
34
+ --> $DIR/intra-link-errors.rs:24 :6
55
35
|
56
36
LL | /// [S::fmt]
57
37
| ^^^^^^
58
38
|
59
39
= note: this link partially resolves to the struct `S`
60
- = note: `S` has no field, variant, or associated item named `fmt `
40
+ = note: no `fmt` in `S `
61
41
62
42
error: unresolved link to `E::D`
63
- --> $DIR/intra-link-errors.rs:32 :6
43
+ --> $DIR/intra-link-errors.rs:29 :6
64
44
|
65
45
LL | /// [E::D]
66
46
| ^^^^
67
47
|
68
48
= note: this link partially resolves to the enum `E`
69
- = note: `E` has no field, variant, or associated item named `D `
49
+ = note: no `D` in `E `
70
50
71
51
error: unresolved link to `u8::not_found`
72
- --> $DIR/intra-link-errors.rs:37 :6
52
+ --> $DIR/intra-link-errors.rs:34 :6
73
53
|
74
54
LL | /// [u8::not_found]
75
55
| ^^^^^^^^^^^^^
76
56
|
77
57
= note: the builtin type `u8` does not have an associated item named `not_found`
78
58
79
59
error: unresolved link to `S`
80
- --> $DIR/intra-link-errors.rs:41 :6
60
+ --> $DIR/intra-link-errors.rs:38 :6
81
61
|
82
62
LL | /// [S!]
83
63
| ^^ help: to link to the struct, use its disambiguator: `struct@S`
84
64
|
85
65
= note: this link resolves to the struct `S`, which is not in the macro namespace
86
66
87
67
error: unresolved link to `T::g`
88
- --> $DIR/intra-link-errors.rs:59 :6
68
+ --> $DIR/intra-link-errors.rs:56 :6
89
69
|
90
70
LL | /// [type@T::g]
91
71
| ^^^^^^^^^ help: to link to the associated function, use its disambiguator: `T::g()`
92
72
|
93
73
= note: this link resolves to the associated function `g`, which is not in the type namespace
94
74
95
75
error: unresolved link to `T::h`
96
- --> $DIR/intra-link-errors.rs:64 :6
76
+ --> $DIR/intra-link-errors.rs:61 :6
97
77
|
98
78
LL | /// [T::h!]
99
79
| ^^^^^
@@ -102,12 +82,12 @@ LL | /// [T::h!]
102
82
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
103
83
104
84
error: unresolved link to `S::h`
105
- --> $DIR/intra-link-errors.rs:51 :6
85
+ --> $DIR/intra-link-errors.rs:48 :6
106
86
|
107
87
LL | /// [type@S::h]
108
88
| ^^^^^^^^^ help: to link to the associated function, use its disambiguator: `S::h()`
109
89
|
110
90
= note: this link resolves to the associated function `h`, which is not in the type namespace
111
91
112
- error: aborting due to 12 previous errors
92
+ error: aborting due to 10 previous errors
113
93
0 commit comments