Closed
Description
It should be possible to link to things like https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#indexing via [Vec#indexing]
.
This is pretty straightforward to implement. We already track fragment specifiers for things like methods and enum variants, which we extract here. What we can do additionally is when parsing if we come across #foo
, strip it out, continue resolution, and if the resolved thing doesn't already have a fragment, use this instead.
I volunteer @sunjay to work on this, because he's the one who wanted this feature 😉
Unsure if this needs an RFC.