Skip to content
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

Prevent failure in case no space left on device in rustdoc #59734

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

GuillaumeGomez
Copy link
Member

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 5, 2019
@@ -1452,11 +1454,12 @@ impl<'a> SourceCollector<'a> {
let mut href = String::new();
clean_srcpath(&self.scx.src_root, &p, false, |component| {
cur.push(component);
fs::create_dir_all(&cur).unwrap();
fs::create_dir_all(&cur)?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fs::create_dir_all(&cur)?; can be moved to after the call to clean_srcpath because create_dir_all works recursively anyway. That means that clean_srcpath itself doesn't need to be modified.

@QuietMisdreavus QuietMisdreavus removed their assignment Apr 11, 2019
@QuietMisdreavus
Copy link
Member

r? @ollie27

1 similar comment
@Dylan-DPC-zz
Copy link

r? @ollie27

@Dylan-DPC-zz
Copy link

ping from triage @GuillaumeGomez you need to address the review left by ollie above.

@Dylan-DPC-zz Dylan-DPC-zz added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 22, 2019
@GuillaumeGomez
Copy link
Member Author

Indeed! I'll do it as soon as possible.

@GuillaumeGomez
Copy link
Member Author

Updated (thanks for the great suggestion @ollie27!).

@ollie27
Copy link
Member

ollie27 commented Apr 25, 2019

Looks good.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 25, 2019

📌 Commit feb5a53 has been approved by ollie27

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 25, 2019
Centril added a commit to Centril/rust that referenced this pull request Apr 25, 2019
…ure, r=ollie27

Prevent failure in case no space left on device in rustdoc

Fixes rust-lang#59703.

r? @QuietMisdreavus
Centril added a commit to Centril/rust that referenced this pull request Apr 25, 2019
…ure, r=ollie27

Prevent failure in case no space left on device in rustdoc

Fixes rust-lang#59703.

r? @QuietMisdreavus
Centril added a commit to Centril/rust that referenced this pull request Apr 26, 2019
…ure, r=ollie27

Prevent failure in case no space left on device in rustdoc

Fixes rust-lang#59703.

r? @QuietMisdreavus
bors added a commit that referenced this pull request Apr 26, 2019
Rollup of 12 pull requests

Successful merges:

 - #59734 (Prevent failure in case no space left on device in rustdoc)
 - #59940 (Set cfg(test) when rustdoc is running with --test option)
 - #60134 (Fix index-page generation)
 - #60165 (Add Pin::{into_inner,into_inner_unchecked})
 - #60183 (Chalkify: Add builtin Copy/Clone)
 - #60225 (Introduce hir::ExprKind::Use and employ in for loop desugaring.)
 - #60247 (Implement Debug for Place using Place::iterate)
 - #60259 (Derive Default instead of new in applicable lint)
 - #60267 (Add feature-gate for f16c target feature)
 - #60284 (Do not allow const generics to depend on type parameters)
 - #60285 (Do not ICE when checking types against foreign fn)
 - #60289 (Make `-Z allow-features` work for stdlib features)

Failed merges:

r? @ghost
@bors bors merged commit feb5a53 into rust-lang:master Apr 26, 2019
@GuillaumeGomez GuillaumeGomez deleted the improve-rustdoc-failure branch April 26, 2019 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Unexpected panic while using cargo doc command with nom 4.2.2.
6 participants