Skip to content

cargo-fix: Dry-run functionality #6040

Open
@ozkriff

Description

@ozkriff

Is something like --dry-run planned? Or cargo fmt will always require a VCS?

Manishearth:
It would print out a diff of what it would change. with cargo check you still have to wonder about which suggestions would get applied, and how

killercup:
Ah, I see, writing the diff is an interesting idea. In theory you can write it to a .patch file, too, then.

Previous issue in the rustfix repo for some context: rust-lang/rustfix#146

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-fixS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions