The diagnostics for intra-doc links could be improve to match the diagnostics available in rust.
Current error message
warning: `[extend]` cannot be resolved, ignoring it.
--> src/vec.rs:704:45
|
704 | /// Note that this function is same as [`extend`] except that it is specialized to work with
| ^^^^^^^^ cannot be resolved, ignoring
|
= note: `#[warn(intra_doc_link_resolution_failure)]` on by default
= help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
The diagnostics should suggest Self::extend(). Note that it should also handle path ambiguity unlike the current diagnostics with struct@, enum@ and others in the original RFC.
Original RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
Tracking issue for intra-doc links: #43466
CC @QuietMisdreavus @Manishearth @jyn514
The diagnostics for intra-doc links could be improve to match the diagnostics available in rust.
Current error message
The diagnostics should suggest
Self::extend(). Note that it should also handle path ambiguity unlike the current diagnostics withstruct@,enum@and others in the original RFC.Original RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
Tracking issue for intra-doc links: #43466
CC
@QuietMisdreavus@Manishearth @jyn514