cargo
cargo copied to clipboard
Clean artifacts with new layout
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.
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
Closing in favor of #16302