Uh oh!
There was an error while loading. Please reload this page.
Point to the rustdoc attribute where intralink resolution failed. - #51111
Conversation
rust-highfive
commented
May 27, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
b8d411d to
216c0afCompareGuillaumeGomez
commented
May 28, 2018
Can you add a test for multiple lines please? (I want to be sure it won't give the first line of the doc comment.) Also, in a second time, it'd be nice to get the span for the link directly instead of its line (but it's just an improvement so not mandatory for this PR). |
216c0af to
6852c13Comparekennytm
commented
May 28, 2018
@GuillaumeGomez Done. It now selects the entire documentation block. Unfortunately, I don't think it is possible to get the span of the link directly, because such information is not passed into Even we can compute the pointer offset of the |
GuillaumeGomez
commented
May 29, 2018
What I meant was for example: /// a [link]////// [blabla]To give: |
kennytm
commented
May 29, 2018
@GuillaumeGomez That's not possible either because |
GuillaumeGomez
commented
May 29, 2018
Hum :-/ |
shepmaster
commented
Jun 2, 2018
Ping from triage, @GuillaumeGomez ! |
GuillaumeGomez
commented
Jun 2, 2018
I wonder what we should do in here... Maybe just print the line where the link is and the line where the doc comment started? As is, it's not really useful (still better than what we have but not complete enough). Do you think you can do this? |
6852c13 to
2886acaComparekennytm
commented
Jun 3, 2018
@GuillaumeGomez The output now looks like this: |
GuillaumeGomez
commented
Jun 3, 2018
Let's go for this version then. Thanks a lot! @bors: r+ |
bors
commented
Jun 3, 2018
📌 Commit 2886aca has been approved by |
bors
commented
Jun 3, 2018
…ers, r=GuillaumeGomez Point to the rustdoc attribute where intralink resolution failed.
bors
commented
Jun 4, 2018
☀️ Test successful - status-appveyor, status-travis |
Use spans pointing at the inside of a rustdoc attribute Follow up to rust-lang#51111. Point to the link in a rustdoc attribute where intralink resolution failed, instead of the full rustdoc attribute's span. r? @GuillaumeGomez cc @kennytm
No description provided.