Skip to content

Remove unremap file when running cargo clean -p in new build-dir layout - #17356

Merged
weihanglo merged 2 commits into
rust-lang:masterfrom
ranger-ross:fix-remove-remap-file-path
Aug 13, 2026
Merged

Remove unremap file when running cargo clean -p in new build-dir layout#17356
weihanglo merged 2 commits into
rust-lang:masterfrom
ranger-ross:fix-remove-remap-file-path

Conversation

@ranger-ross

Copy link
Copy Markdown
Member

What does this PR try to resolve?

See #17354 (comment) for the motivating context.

In #17303 we started emitting unremap files to final artifacts.
This included logic for cleaning the unremap file when running cargo clean -p but the logic was not added in the .build_dir_new_layout branch in the cargo clean logic.

This PR adds the logic to both branches.

How to test and review this PR?

Primarily using the existing tests

r? @weihanglo

@rustbot rustbot added Command-clean S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 13, 2026

@weihanglo weihanglo 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.

@weihanglo
weihanglo added this pull request to the merge queue Aug 13, 2026
Merged via the queue into rust-lang:master with commit 83b31e5 Aug 13, 2026
29 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 13, 2026
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Aug 15, 2026
Update cargo submodule

6 commits in eb98b54bc9f3c74519f43d066cb3fd02ebc88df0..8a0d8afba810304bcf9a10bac430be80dd470233
2026-08-11 16:00:29 +0000 to 2026-08-15 01:32:53 +0000
- chore: update to cc@1.4.3 (rust-lang/cargo#17364)
- Remove most trailing whitespace across cargo (particularly markdown) (rust-lang/cargo#17358)
- Remove unremap file when running cargo clean -p in new build-dir layout (rust-lang/cargo#17356)
- fix(update)!: Remove unstable `--breaking` (rust-lang/cargo#17333)
- docs: adopt rust-lang/rust's LLM usage policy (rust-lang/cargo#17330)
- fix(min-publish-age): remove `registry.min-publish-age` (rust-lang/cargo#17353)

r? ghost
@rustbot rustbot added this to the 1.100.0 milestone Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants