Skip to content

Use remove_dir_all for ./x clean - #160852

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
ChrisDenton:rmdirall
Aug 10, 2026
Merged

Use remove_dir_all for ./x clean#160852
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
ChrisDenton:rmdirall

Conversation

@ChrisDenton

Copy link
Copy Markdown
Member

This should work better in most cases (and be faster) particularly on Windows. I've left the old implementation more or less intact to provide diagnostics on failure. But it could be removed if desired.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Aug 10, 2026
@rustbot

rustbot commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

r? @jieyouxu

rustbot has assigned @jieyouxu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: bootstrap
  • bootstrap expanded to 6 candidates
  • Random selection from Mark-Simulacrum, clubby789, jieyouxu

Comment thread src/bootstrap/src/core/build_steps/clean.rs

@jieyouxu jieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, thanks
@bors r+ rollup

View changes since this review

@rust-bors

rust-bors Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

📌 Commit f6d18c6 has been approved by jieyouxu

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Aug 10, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 10, 2026
Use `remove_dir_all` for `./x clean`

This should work better in most cases (and be faster) particularly on Windows. I've left the old implementation more or less intact to provide diagnostics on failure. But it could be removed if desired.
rust-bors Bot pushed a commit that referenced this pull request Aug 10, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #158404 (trait_solver: normalize next-gen region constraints)
 - #160631 (Do not eagerly download rustfmt in bootstrap)
 - #160642 (mir: prohibit projection into scalable vec)
 - #160749 (MaybeDangling: ensure references fit inside the address space)
 - #160791 (Use recognizer functions for enums and tuple structs)
 - #160500 (Fix inaccurate description for crate and pathroot)
 - #160590 (Docs & bors: Replace mentions of libs-api with libs)
 - #160825 (Fix references to unsupported on sys::paths::unix)
 - #160852 (Use `remove_dir_all` for `./x clean`)

Failed merges:

 - #160829 (bootstrap: Make `main.rs` a stub that calls into the library crate)
@rust-bors
rust-bors Bot merged commit 18d3668 into rust-lang:main Aug 10, 2026
13 checks passed
@rustbot rustbot added this to the 1.99.0 milestone Aug 10, 2026
@ChrisDenton
ChrisDenton deleted the rmdirall branch August 10, 2026 22:03
rust-timer added a commit that referenced this pull request Aug 10, 2026
Rollup merge of #160852 - ChrisDenton:rmdirall, r=jieyouxu

Use `remove_dir_all` for `./x clean`

This should work better in most cases (and be faster) particularly on Windows. I've left the old implementation more or less intact to provide diagnostics on failure. But it could be removed if desired.
github-actions Bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Aug 11, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#158404 (trait_solver: normalize next-gen region constraints)
 - rust-lang/rust#160631 (Do not eagerly download rustfmt in bootstrap)
 - rust-lang/rust#160642 (mir: prohibit projection into scalable vec)
 - rust-lang/rust#160749 (MaybeDangling: ensure references fit inside the address space)
 - rust-lang/rust#160791 (Use recognizer functions for enums and tuple structs)
 - rust-lang/rust#160500 (Fix inaccurate description for crate and pathroot)
 - rust-lang/rust#160590 (Docs & bors: Replace mentions of libs-api with libs)
 - rust-lang/rust#160825 (Fix references to unsupported on sys::paths::unix)
 - rust-lang/rust#160852 (Use `remove_dir_all` for `./x clean`)

Failed merges:

 - rust-lang/rust#160829 (bootstrap: Make `main.rs` a stub that calls into the library crate)
bjorn3 pushed a commit to bjorn3/stdarch that referenced this pull request Aug 13, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#158404 (trait_solver: normalize next-gen region constraints)
 - rust-lang/rust#160631 (Do not eagerly download rustfmt in bootstrap)
 - rust-lang/rust#160642 (mir: prohibit projection into scalable vec)
 - rust-lang/rust#160749 (MaybeDangling: ensure references fit inside the address space)
 - rust-lang/rust#160791 (Use recognizer functions for enums and tuple structs)
 - rust-lang/rust#160500 (Fix inaccurate description for crate and pathroot)
 - rust-lang/rust#160590 (Docs & bors: Replace mentions of libs-api with libs)
 - rust-lang/rust#160825 (Fix references to unsupported on sys::paths::unix)
 - rust-lang/rust#160852 (Use `remove_dir_all` for `./x clean`)

Failed merges:

 - rust-lang/rust#160829 (bootstrap: Make `main.rs` a stub that calls into the library crate)
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. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants