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
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