Skip to content

Commit f45e7b5

Browse files
committed
Update .stderr
1 parent 3797f29 commit f45e7b5

File tree

3 files changed

+55
-17
lines changed

3 files changed

+55
-17
lines changed

src/test/rustdoc-ui/intra-doc-alias-ice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: the lint level is defined here
99
|
1010
LL | #![deny(broken_intra_doc_links)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^
12-
= note: this link partially resolves to the type alias `TypeAlias`,
12+
= note: this link partially resolves to the type alias `TypeAlias`
1313
= note: `TypeAlias` has no field, variant, or associated item named `hoge`
1414

1515
error: aborting due to previous error
Lines changed: 53 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,39 @@
1-
error: unresolved link to `path::to::nonexistent::module`
2-
--> $DIR/intra-link-errors.rs:8:6
1+
error: unresolved link to `std::io::oops`
2+
--> $DIR/intra-link-errors.rs:4:6
33
|
4-
LL | /// [path::to::nonexistent::module]
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | //! [std::io::oops]
5+
| ^^^^^^^^^^^^^
66
|
77
note: the lint level is defined here
88
--> $DIR/intra-link-errors.rs:1:9
99
|
1010
LL | #![deny(broken_intra_doc_links)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^
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+
|
1232
= note: no item named `path::to::nonexistent` is in scope
1333
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
1434

1535
error: unresolved link to `f::A`
16-
--> $DIR/intra-link-errors.rs:14:6
36+
--> $DIR/intra-link-errors.rs:17:6
1737
|
1838
LL | /// [f::A]
1939
| ^^^^
@@ -22,47 +42,65 @@ LL | /// [f::A]
2242
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
2343

2444
error: unresolved link to `S::A`
25-
--> $DIR/intra-link-errors.rs:19:6
45+
--> $DIR/intra-link-errors.rs:22:6
2646
|
2747
LL | /// [S::A]
2848
| ^^^^
2949
|
30-
= note: this link partially resolves to the struct `S`,
50+
= note: this link partially resolves to the struct `S`
3151
= note: `S` has no field, variant, or associated item named `A`
3252

3353
error: unresolved link to `S::fmt`
34-
--> $DIR/intra-link-errors.rs:24:6
54+
--> $DIR/intra-link-errors.rs:27:6
3555
|
3656
LL | /// [S::fmt]
3757
| ^^^^^^
3858
|
39-
= note: this link partially resolves to the struct `S`,
59+
= note: this link partially resolves to the struct `S`
4060
= note: `S` has no field, variant, or associated item named `fmt`
4161

4262
error: unresolved link to `E::D`
43-
--> $DIR/intra-link-errors.rs:29:6
63+
--> $DIR/intra-link-errors.rs:32:6
4464
|
4565
LL | /// [E::D]
4666
| ^^^^
4767
|
48-
= note: this link partially resolves to the enum `E`,
68+
= note: this link partially resolves to the enum `E`
4969
= note: `E` has no field, variant, or associated item named `D`
5070

5171
error: unresolved link to `u8::not_found`
52-
--> $DIR/intra-link-errors.rs:34:6
72+
--> $DIR/intra-link-errors.rs:37:6
5373
|
5474
LL | /// [u8::not_found]
5575
| ^^^^^^^^^^^^^
5676
|
5777
= note: the builtin type `u8` does not have an associated item named `not_found`
5878

5979
error: unresolved link to `S`
60-
--> $DIR/intra-link-errors.rs:38:6
80+
--> $DIR/intra-link-errors.rs:41:6
6181
|
6282
LL | /// [S!]
6383
| ^^ help: to link to the unit struct, use its disambiguator: `value@S`
6484
|
65-
= note: this link resolves to the unit struct `S`, which is not in the value namespace
85+
= note: this link resolves to the unit struct `S`, which is not in the macro namespace
86+
87+
error: unresolved link to `T::g`
88+
--> $DIR/intra-link-errors.rs:56:6
89+
|
90+
LL | /// [type@T::g]
91+
| ^^^^^^^^^
92+
|
93+
= note: this link partially resolves to the trait `T`
94+
= note: `T` has no field, variant, or associated item named `g`
95+
96+
error: unresolved link to `S::h`
97+
--> $DIR/intra-link-errors.rs:51:6
98+
|
99+
LL | /// [type@S::h]
100+
| ^^^^^^^^^
101+
|
102+
= note: this link partially resolves to the struct `S`
103+
= note: `S` has no field, variant, or associated item named `h`
66104

67-
error: aborting due to 7 previous errors
105+
error: aborting due to 11 previous errors
68106

src/test/rustdoc-ui/intra-links-warning.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | //! Test with [Foo::baz], [Bar::foo], ...
55
| ^^^^^^^^
66
|
77
= note: `#[warn(broken_intra_doc_links)]` on by default
8-
= note: this link partially resolves to the struct `Foo`,
8+
= note: this link partially resolves to the struct `Foo`
99
= note: `Foo` has no field, variant, or associated item named `baz`
1010

1111
warning: unresolved link to `Bar::foo`

0 commit comments

Comments
 (0)