-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix line display for hoedown #41405
Fix line display for hoedown #41405
Conversation
src/librustdoc/test.rs
Outdated
} | ||
if number < line { | ||
line -= number; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What cases were you running into where the number of tests was more than the line number itself? Or is this a guard to prevent underflowing a usize?
@bors delegate=quietmisdreavus In case you feel confident enough to review this :) |
✌️ @QuietMisdreavus can now approve this pull request |
This is really hell... |
d5d9add
to
a654610
Compare
Updated. |
@bors: r+ thanks @GuillaumeGomez ❤️ (and @kennytm for the extra cases) |
📌 Commit a654610 has been approved by |
The latest travis log: https://travis-ci.org/rust-lang/rust/jobs/224065533 still has a lot of "Code block is not currently run as a test" warnings so this is clearly not yet fully fixed. |
Just improving priority a bit. @bors: p=1 |
⌛ Testing commit a654610 with merge 609a7fb... |
💔 Test failed - status-appveyor |
@bors: retry |
⌛ Testing commit a654610 with merge ce2d90e... |
@bors retry
|
@bors retry trying to kick homu |
@bors retry |
⌛ Testing commit a654610 with merge c99d381... |
…ovement, r=steveklabnik Fix line display for hoedown Fixes rust-lang#41401. r? @rust-lang/docs
This failed on Windows, but bors never picked it up. Going to retry this in a rollup @bors retry |
…ovement, r=steveklabnik Fix line display for hoedown Fixes rust-lang#41401. r? @rust-lang/docs
Fixes #41401.
r? @rust-lang/docs