|
1 | 1 | error: incompatible link kind for `S`
|
2 |
| - --> $DIR/disambiguator-mismatch.rs:14:14 |
| 2 | + --> $DIR/disambiguator-mismatch.rs:16:14 |
3 | 3 | |
|
4 | 4 | LL | /// Link to [struct@S]
|
5 |
| - | ^^^^^^^^ help: to link to the enum, prefix with `enum@`: `enum@S` |
| 5 | + | ^^^^^^^^ this link resolved to an enum, which is not a struct |
6 | 6 | |
|
7 | 7 | note: the lint level is defined here
|
8 | 8 | --> $DIR/disambiguator-mismatch.rs:1:9
|
9 | 9 | |
|
10 | 10 | LL | #![deny(rustdoc::broken_intra_doc_links)]
|
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
12 |
| - = note: this link resolved to an enum, which is not a struct |
| 12 | +help: to link to the enum, prefix with `enum@` |
| 13 | + | |
| 14 | +LL | /// Link to [enum@S] |
| 15 | + | ^^^^^ |
13 | 16 |
|
14 | 17 | error: incompatible link kind for `S`
|
15 |
| - --> $DIR/disambiguator-mismatch.rs:19:14 |
| 18 | + --> $DIR/disambiguator-mismatch.rs:21:14 |
16 | 19 | |
|
17 | 20 | LL | /// Link to [mod@S]
|
18 |
| - | ^^^^^ help: to link to the enum, prefix with `enum@`: `enum@S` |
| 21 | + | ^^^^^ this link resolved to an enum, which is not a module |
| 22 | + | |
| 23 | +help: to link to the enum, prefix with `enum@` |
19 | 24 | |
|
20 |
| - = note: this link resolved to an enum, which is not a module |
| 25 | +LL | /// Link to [enum@S] |
| 26 | + | ^^^^^ |
21 | 27 |
|
22 | 28 | error: incompatible link kind for `S`
|
23 |
| - --> $DIR/disambiguator-mismatch.rs:24:14 |
| 29 | + --> $DIR/disambiguator-mismatch.rs:26:14 |
24 | 30 | |
|
25 | 31 | LL | /// Link to [union@S]
|
26 |
| - | ^^^^^^^ help: to link to the enum, prefix with `enum@`: `enum@S` |
| 32 | + | ^^^^^^^ this link resolved to an enum, which is not a union |
27 | 33 | |
|
28 |
| - = note: this link resolved to an enum, which is not a union |
| 34 | +help: to link to the enum, prefix with `enum@` |
| 35 | + | |
| 36 | +LL | /// Link to [enum@S] |
| 37 | + | ^^^^^ |
29 | 38 |
|
30 | 39 | error: incompatible link kind for `S`
|
31 |
| - --> $DIR/disambiguator-mismatch.rs:29:14 |
| 40 | + --> $DIR/disambiguator-mismatch.rs:31:14 |
32 | 41 | |
|
33 | 42 | LL | /// Link to [trait@S]
|
34 |
| - | ^^^^^^^ help: to link to the enum, prefix with `enum@`: `enum@S` |
| 43 | + | ^^^^^^^ this link resolved to an enum, which is not a trait |
| 44 | + | |
| 45 | +help: to link to the enum, prefix with `enum@` |
35 | 46 | |
|
36 |
| - = note: this link resolved to an enum, which is not a trait |
| 47 | +LL | /// Link to [enum@S] |
| 48 | + | ^^^^^ |
37 | 49 |
|
38 | 50 | error: incompatible link kind for `T`
|
39 |
| - --> $DIR/disambiguator-mismatch.rs:34:14 |
| 51 | + --> $DIR/disambiguator-mismatch.rs:36:14 |
40 | 52 | |
|
41 | 53 | LL | /// Link to [struct@T]
|
42 |
| - | ^^^^^^^^ help: to link to the trait, prefix with `trait@`: `trait@T` |
| 54 | + | ^^^^^^^^ this link resolved to a trait, which is not a struct |
43 | 55 | |
|
44 |
| - = note: this link resolved to a trait, which is not a struct |
| 56 | +help: to link to the trait, prefix with `trait@` |
| 57 | + | |
| 58 | +LL | /// Link to [trait@T] |
| 59 | + | ^^^^^^ |
45 | 60 |
|
46 | 61 | error: incompatible link kind for `m`
|
47 |
| - --> $DIR/disambiguator-mismatch.rs:39:14 |
| 62 | + --> $DIR/disambiguator-mismatch.rs:41:14 |
48 | 63 | |
|
49 | 64 | LL | /// Link to [derive@m]
|
50 |
| - | ^^^^^^^^ help: to link to the macro, add an exclamation mark: `m!` |
| 65 | + | ^^^^^^^^ this link resolved to a macro, which is not a derive macro |
| 66 | + | |
| 67 | +help: to link to the macro, add an exclamation mark |
51 | 68 | |
|
52 |
| - = note: this link resolved to a macro, which is not a derive macro |
| 69 | +LL | /// Link to [m!] |
| 70 | + | --^ |
| 71 | + |
| 72 | +error: unresolved link to `m` |
| 73 | + --> $DIR/disambiguator-mismatch.rs:46:14 |
| 74 | + | |
| 75 | +LL | /// Link to [m()] |
| 76 | + | ^^^ this link resolves to the macro `m`, which is not in the value namespace |
| 77 | + | |
| 78 | +help: to link to the macro, add an exclamation mark |
| 79 | + | |
| 80 | +LL | /// Link to [m!()] |
| 81 | + | ^ |
53 | 82 |
|
54 | 83 | error: incompatible link kind for `s`
|
55 |
| - --> $DIR/disambiguator-mismatch.rs:44:14 |
| 84 | + --> $DIR/disambiguator-mismatch.rs:52:14 |
56 | 85 | |
|
57 | 86 | LL | /// Link to [const@s]
|
58 |
| - | ^^^^^^^ help: to link to the static, prefix with `static@`: `static@s` |
| 87 | + | ^^^^^^^ this link resolved to a static, which is not a constant |
59 | 88 | |
|
60 |
| - = note: this link resolved to a static, which is not a constant |
| 89 | +help: to link to the static, prefix with `static@` |
| 90 | + | |
| 91 | +LL | /// Link to [static@s] |
| 92 | + | ^^^^^^^ |
61 | 93 |
|
62 | 94 | error: incompatible link kind for `c`
|
63 |
| - --> $DIR/disambiguator-mismatch.rs:49:14 |
| 95 | + --> $DIR/disambiguator-mismatch.rs:57:14 |
64 | 96 | |
|
65 | 97 | LL | /// Link to [static@c]
|
66 |
| - | ^^^^^^^^ help: to link to the constant, prefix with `const@`: `const@c` |
| 98 | + | ^^^^^^^^ this link resolved to a constant, which is not a static |
| 99 | + | |
| 100 | +help: to link to the constant, prefix with `const@` |
67 | 101 | |
|
68 |
| - = note: this link resolved to a constant, which is not a static |
| 102 | +LL | /// Link to [const@c] |
| 103 | + | ^^^^^^ |
69 | 104 |
|
70 | 105 | error: incompatible link kind for `c`
|
71 |
| - --> $DIR/disambiguator-mismatch.rs:54:14 |
| 106 | + --> $DIR/disambiguator-mismatch.rs:62:14 |
72 | 107 | |
|
73 | 108 | LL | /// Link to [fn@c]
|
74 |
| - | ^^^^ help: to link to the constant, prefix with `const@`: `const@c` |
| 109 | + | ^^^^ this link resolved to a constant, which is not a function |
75 | 110 | |
|
76 |
| - = note: this link resolved to a constant, which is not a function |
| 111 | +help: to link to the constant, prefix with `const@` |
| 112 | + | |
| 113 | +LL | /// Link to [const@c] |
| 114 | + | ^^^^^^ |
77 | 115 |
|
78 | 116 | error: incompatible link kind for `c`
|
79 |
| - --> $DIR/disambiguator-mismatch.rs:59:14 |
| 117 | + --> $DIR/disambiguator-mismatch.rs:67:14 |
80 | 118 | |
|
81 | 119 | LL | /// Link to [c()]
|
82 |
| - | ^^^ help: to link to the constant, prefix with `const@`: `const@c` |
| 120 | + | ^^^ this link resolved to a constant, which is not a function |
| 121 | + | |
| 122 | +help: to link to the constant, prefix with `const@` |
83 | 123 | |
|
84 |
| - = note: this link resolved to a constant, which is not a function |
| 124 | +LL | /// Link to [const@c] |
| 125 | + | ^^^^^^-- |
85 | 126 |
|
86 | 127 | error: incompatible link kind for `f`
|
87 |
| - --> $DIR/disambiguator-mismatch.rs:64:14 |
| 128 | + --> $DIR/disambiguator-mismatch.rs:72:14 |
88 | 129 | |
|
89 | 130 | LL | /// Link to [const@f]
|
90 |
| - | ^^^^^^^ help: to link to the function, add parentheses: `f()` |
| 131 | + | ^^^^^^^ this link resolved to a function, which is not a constant |
| 132 | + | |
| 133 | +help: to link to the function, add parentheses |
91 | 134 | |
|
92 |
| - = note: this link resolved to a function, which is not a constant |
| 135 | +LL | /// Link to [f()] |
| 136 | + | --^^ |
93 | 137 |
|
94 |
| -error: aborting due to 11 previous errors |
| 138 | +error: aborting due to 12 previous errors |
95 | 139 |
|
0 commit comments