Skip to content

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Sep 14, 2020

Thanks to marcusklaas' hard work in pulldown-cmark/pulldown-cmark#469, this fixes a lot of rustdoc bugs!

  • Get rid of unnecessary RefCell
  • Fix duplicate warnings for broken implicit reference link
  • Remove unnecessary copy of links

Closes #73264, closes #76687.
r? @euclio

I'm not sure if the switch away from locate fixes any open bugs - euclio mentioned some in pulldown-cmark/pulldown-cmark#165, but I didn't see any related issues open for rustdoc. Let me know if I missed one.

Thanks to marcusklaas' hard work in pulldown-cmark/pulldown-cmark#469, this fixes a lot of rustdoc bugs!

- Get rid of unnecessary `RefCell`
- Fix duplicate warnings for broken implicit reference link
- Remove unnecessary copy of links
@jyn514 jyn514 added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name labels Sep 14, 2020
@camelid
Copy link
Member

camelid commented Sep 14, 2020

Do you want to add "Closes #76687" to your PR message and then I'll open a new issue for smart punctuation?

@jyn514
Copy link
Member Author

jyn514 commented Sep 14, 2020

Good idea, done

@camelid
Copy link
Member

camelid commented Sep 14, 2020

It looks like rust-highfive didn't work.

r? @euclio

@camelid
Copy link
Member

camelid commented Sep 14, 2020

Hmm, perhaps it's offline?

@jyn514
Copy link
Member Author

jyn514 commented Sep 14, 2020

@camelid euclio isn't an org member, so highfive crashes.

@jyn514 jyn514 added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 14, 2020
@camelid
Copy link
Member

camelid commented Sep 14, 2020

Huh, interesting. I thought I've seen it assign non-org members before, but maybe that was a manual assignment...

This shows the span of the _whole_ link, including the brackets.
But rustdoc only wants to warn about the link text.
@Dylan-DPC-zz
Copy link

@camelid it does for issues via triagebot or has to "delegated"

r? @GuillaumeGomez

@GuillaumeGomez
Copy link
Member

This is so great! :D

@bors: r+

@bors
Copy link
Collaborator

bors commented Sep 14, 2020

📌 Commit 6f2e1c6 has been approved by GuillaumeGomez

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 14, 2020
@jyn514
Copy link
Member Author

jyn514 commented Sep 14, 2020

I'm not sure if the switch away from locate fixes any open bugs

I reverted this back to using locate btw, otherwise it included the [] and (...) in the link span: f7983ca

bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 16, 2020
Rollup of 10 pull requests

Successful merges:

 - rust-lang#73955 (deny(unsafe_op_in_unsafe_fn) in libstd/process.rs)
 - rust-lang#75146 (Detect overflow in proc_macro_server subspan)
 - rust-lang#75304 (Note when a a move/borrow error is caused by a deref coercion)
 - rust-lang#75749 (Consolidate some duplicate code in the sys modules.)
 - rust-lang#75882 (Use translated variable for test string)
 - rust-lang#75886 (Test that bounds checks are elided for [..index] after .position())
 - rust-lang#76048 (Initial support for riscv32gc_unknown_linux_gnu)
 - rust-lang#76198 (Make some Ordering methods const)
 - rust-lang#76689 (Upgrade to pulldown-cmark 0.8.0)
 - rust-lang#76763 (Update cargo)

Failed merges:

r? `@ghost`
@bors bors merged commit 1fd22fc into rust-lang:master Sep 16, 2020
@rustbot rustbot added this to the 1.48.0 milestone Sep 16, 2020
@jyn514 jyn514 deleted the update-pulldown branch November 7, 2020 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustdoc: Update pulldown-cmark to 0.8 Rustdoc will report warnings multiple times for reference links
6 participants