@@ -69,19 +69,29 @@ LL | bar [BarC] bar
6969 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
7070
7171warning: unresolved link to `BarD`
72- --> $DIR/warning.rs:45:20
72+ --> $DIR/warning.rs:45:9
7373 |
7474LL | #[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
7984warning: unresolved link to `BarF`
80- --> $DIR/warning.rs:54:15
85+ --> $DIR/warning.rs:54:4
8186 |
8287LL | 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
104114warning: unresolved link to `error`
105- --> $DIR/warning.rs:68:23
115+ --> $DIR/warning.rs:68:9
106116 |
107117LL | #[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
112127warning: unresolved link to `error`
113- --> $DIR/warning.rs:71:41
128+ --> $DIR/warning.rs:71:9
114129 |
115130LL | #[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
120140warning: unresolved link to `error`
0 commit comments