Uh oh!
There was an error while loading. Please reload this page.
rustdoc: Don't generate empty files for stripped items - #34045
Conversation
We need to traverse stripped modules to generate redirect pages, but we shouldn't generate anything else for them. This now renders the file contents to a Vec before writing it to a file in one go. I think that's probably a better strategy anyway.
rust-highfive
commented
Jun 2, 2016
r? @cmr (rust_highfive has picked a reviewer for you, use r? to override) |
GuillaumeGomez
commented
Jun 2, 2016
Hum... Strange. It doesn't prevent the file creation for |
ollie27
commented
Jun 2, 2016
It should do, do you have an example where it doesn't? Files for What currently happens is empty files are created anyway which I believe is what the problem in #34025 is. |
GuillaumeGomez
commented
Jun 2, 2016
Your solution might be better than mine then. I close my PR in favor of yours. Great job. 😃 |
brson
commented
Jun 2, 2016
@bors r+ thanks @GuillaumeGomez@ollie27 |
bors
commented
Jun 2, 2016
📌 Commit cfb4ad2 has been approved by |
BenTheElder
commented
Jun 3, 2016
GuillaumeGomez
commented
Jun 3, 2016
@BenTheElder: No need, bors will test and merge on its own. |
BenTheElder
commented
Jun 3, 2016
Oh cool :-) On Fri, Jun 3, 2016 at 3:41 PM, Guillaume Gomez notifications@github.com
|
ollie27
commented
Jun 3, 2016
I ran linkchecker after this PR and it looks like I uncovered another rustdoc bug, now getting:
I've fixed that in #34068 but assuming bors is gated on linkchecker then this PR won't pass until that is merged. Should I add that commit to this PR if that's easier? |
bors
commented
Jun 4, 2016
⌛ Testing commit cfb4ad2 with merge da75ed2... |
bors
commented
Jun 4, 2016
💔 Test failed - auto-linux-64-opt-rustbuild |
brson
commented
Jun 7, 2016
@ollie27 If you have the patience let's just wait for the other to land. |
ollie27
commented
Jun 11, 2016
alexcrichton
commented
Jun 12, 2016
@bors: retry |
bors
commented
Jun 12, 2016
⌛ Testing commit cfb4ad2 with merge a76698b... |
rustdoc: Don't generate empty files for stripped items We need to traverse stripped modules to generate redirect pages, but we shouldn't generate anything else for them. This now renders the file contents to a Vec before writing it to a file in one go. I think that's probably a better strategy anyway. Fixes: #34025
We need to traverse stripped modules to generate redirect pages, but we shouldn't generate
anything else for them.
This now renders the file contents to a Vec before writing it to a file in one go. I think
that's probably a better strategy anyway.
Fixes: #34025