Uh oh!
There was an error while loading. Please reload this page.
emit error when doc generation fails - #55933
Conversation
rust-highfive
commented
Nov 13, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
TimNN
commented
Nov 20, 2018
Ping form triage @steveklabnik / @rust-lang/rustdoc: This PR requires your review. |
steveklabnik
commented
Nov 20, 2018
@QuietMisdreavus or @GuillaumeGomez should be r+'ing this, not me |
GuillaumeGomez
commented
Nov 21, 2018
Looks nice! Please add a |
euclio
commented
Nov 21, 2018
I'd like to, but I'm not sure how to simulate filesystem errors in a UI test. |
GuillaumeGomez
commented
Nov 21, 2018
Ah that's a good point... @rust-lang/infra Does anyone knows how to simulate a full disk? |
kennytm
commented
Nov 22, 2018
what about write to a location which you have no permission? this will need to be changed to a run-make test though. |
GuillaumeGomez
commented
Nov 22, 2018
Hard to write an all-OSes test... |
QuietMisdreavus
commented
Nov 30, 2018
It may be enough to make it run on just Unix, though. The trick is just to make sure it outputs the right kind of error message when it encounters a filesystem error, even if the nature of that error doesn't matter much. Plus, plenty of other Otherwise, i quite like this PR. (I'm also not opposed to landing it as-is, since it's effectively just changing the way rustdoc prints certain kinds of errors.) |
euclio
commented
Dec 3, 2018
@QuietMisdreavus pushed a run-make test that checks that it doesn't ICE. |
There was a problem hiding this comment.
Does this save the exit status into $(.SHELLSTATUS) for later? I'm not familiar with this syntax.
There was a problem hiding this comment.
There was a problem hiding this comment.
Cool, thanks for the link!
Uh oh!
There was an error while loading. Please reload this page.
d4325f0 to
e2fa3c1Compare
QuietMisdreavus
left a comment
There was a problem hiding this comment.
Excellent, thanks so much! r=me when travis is green.
GuillaumeGomez
commented
Dec 5, 2018
@bors: r=QuietMisdreavus |
bors
commented
Dec 5, 2018
📌 Commit e2fa3c17ebf51aac41801a040ea0e7857e9da63f has been approved by |
kennytm
commented
Dec 5, 2018
@bors r- The test did not pass on Windows. See #56531 (comment) |
euclio
commented
Dec 5, 2018
The test was missing an else branch that runs an empty target. Fixed. |
QuietMisdreavus
commented
Dec 5, 2018
r=me pending travis |
QuietMisdreavus
commented
Dec 5, 2018
@bors r+ |
bors
commented
Dec 5, 2018
📌 Commit c359f98 has been approved by |
bors
commented
Dec 5, 2018
emit error when doc generation fails Fixes#41813. The diagnostic looks something like this: ``` error: couldn't generate documentation: No space left on device (os error 28) | = note: failed to create or modify "/path/to/crate/target/doc/src/lazycell" ```
bors
commented
Dec 5, 2018
☀️ Test successful - status-appveyor, status-travis |
michaelwoerister
commented
Dec 6, 2018
I'm wondering why this caused a visible performance regression: cc @rust-lang/wg-compiler-performance |
eddyb
commented
Dec 7, 2018
@michaelwoerister That makes no sense, I'd suspect an issue with the perf setup. |
Fixes#41813.
The diagnostic looks something like this: