Skip to content

Commit aaefdcf

Browse files
committed
rustdoc: bless improved output
1 parent 74b1eb3 commit aaefdcf

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

tests/rustdoc-ui/intra-doc/warning.stderr

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,29 @@ LL | bar [BarC] bar
6969
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
7070

7171
warning: unresolved link to `BarD`
72-
--> $DIR/warning.rs:45:20
72+
--> $DIR/warning.rs:45:9
7373
|
7474
LL | #[doc = "Foo\nbar [BarD] bar\nbaz"]
75-
| ^^^^ no item named `BarD` in scope
75+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
7676
|
77+
= note: the link appears in this line:
78+
79+
bar [BarD] bar
80+
^^^^
81+
= note: no item named `BarD` in scope
7782
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
7883

7984
warning: unresolved link to `BarF`
80-
--> $DIR/warning.rs:54:15
85+
--> $DIR/warning.rs:54:4
8186
|
8287
LL | f!("Foo\nbar [BarF] bar\nbaz");
83-
| ^^^^ no item named `BarF` in scope
88+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
8489
|
90+
= note: the link appears in this line:
91+
92+
bar [BarF] bar
93+
^^^^
94+
= note: no item named `BarF` in scope
8595
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
8696
= note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info)
8797

@@ -102,19 +112,29 @@ LL | * time to introduce a link [error]
102112
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
103113

104114
warning: unresolved link to `error`
105-
--> $DIR/warning.rs:68:23
115+
--> $DIR/warning.rs:68:9
106116
|
107117
LL | #[doc = "single line [error]"]
108-
| ^^^^^ no item named `error` in scope
118+
| ^^^^^^^^^^^^^^^^^^^^^
109119
|
120+
= note: the link appears in this line:
121+
122+
single line [error]
123+
^^^^^
124+
= note: no item named `error` in scope
110125
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
111126

112127
warning: unresolved link to `error`
113-
--> $DIR/warning.rs:71:41
128+
--> $DIR/warning.rs:71:9
114129
|
115130
LL | #[doc = "single line with \"escaping\" [error]"]
116-
| ^^^^^ no item named `error` in scope
131+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117132
|
133+
= note: the link appears in this line:
134+
135+
single line with "escaping" [error]
136+
^^^^^
137+
= note: no item named `error` in scope
118138
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
119139

120140
warning: unresolved link to `error`

0 commit comments

Comments
 (0)