cargo icon indicating copy to clipboard operation
cargo copied to clipboard

Clean artifacts with new layout

Open charmitro opened this issue 1 month ago • 1 comments

Add cleanup for hashed example files, depinfo, debug files, and incremental compilation outputs when using cargo clean -p with -Zbuild-dir-new-layout.

The new layout was missing glob-based cleanup for:

  • Hashed example artifacts in build_dir().examples()
  • Rustc-generated depinfo (.d) and debug files (.o, .dwo, .dwp)
  • Incremental compilation files in build_dir().incremental()

Closes #16302

@epage had this in my stash, so let me know if I'm doing something you're already in progress of doing.

charmitro avatar Dec 02 '25 22:12 charmitro

r? @weihanglo

rustbot has assigned @weihanglo. 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

rustbot avatar Dec 02 '25 22:12 rustbot

Closing in favor of #16302

charmitro avatar Dec 04 '25 10:12 charmitro