Skip to content

Fix lines highlighting in rustdoc source view #61008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

GuillaumeGomez
Copy link
Member

Fixes #60948.

This PR fixes how we handle the lines highlighting from the URL (so in "/doc/src/alloc/string.rs.html#285-283", the "285-283" part). We got a hard limit on 50000, for some unknown and lost reasons which was used in case only one line is selected.

r? @Manishearth

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 21, 2019
@GuillaumeGomez
Copy link
Member Author

cc @rust-lang/rustdoc

@GuillaumeGomez
Copy link
Member Author

Since @Manishearth approved it and no one from the @rust-lang/rustdoc team said anything about it, I guess it's fine to r+ it...

@bors: r=Manishearth rollup

@bors
Copy link
Collaborator

bors commented Jun 2, 2019

📌 Commit 8ca3887 has been approved by Manishearth

@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 Jun 2, 2019
bors added a commit that referenced this pull request Jun 3, 2019
…r=Manishearth

Fix lines highlighting in rustdoc source view

Fixes #60948.

This PR fixes how we handle the lines highlighting from the URL (so in "/doc/src/alloc/string.rs.html#285-283", the "285-283" part). We got a hard limit on 50000, for some unknown and lost reasons which was used in case only one line is selected.

r? @Manishearth
@bors
Copy link
Collaborator

bors commented Jun 3, 2019

⌛ Testing commit 8ca3887 with merge 3a6bef0...

@bors
Copy link
Collaborator

bors commented Jun 3, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: Manishearth
Pushing 3a6bef0 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 3, 2019
@bors bors merged commit 8ca3887 into rust-lang:master Jun 3, 2019
@GuillaumeGomez GuillaumeGomez deleted the fix-rustdoc-code-highlighting branch June 3, 2019 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rustdoc doesn't allow to navigate to lines after 50000
4 participants