Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo fix: Pass `--all-targets` by default #5739

Closed
killercup opened this Issue Jul 17, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@killercup
Copy link
Member

killercup commented Jul 17, 2018

After hearing from a few people that they expected cargo fix to fix their tests by default and discussing this on discord, we now want to pass --all-targets by default.

The main disadvantage of this is that it hides some of the actual complexity -- while you get a lot more fixed code, optional features and #[cfg(…)] parts are still not covered.

@dwijnand

This comment has been minimized.

Copy link
Member

dwijnand commented Jul 25, 2018

Another disadvantage (from my perspective, unless I'm mistaken) is that it makes it irregular with, say, build.

alexcrichton added a commit to alexcrichton/cargo that referenced this issue Jul 27, 2018

fix: Pass `--all-targets` to `cargo fix` by default
This'll help fix as much code as possible, including tests!

Closes rust-lang#5739

bors added a commit that referenced this issue Jul 30, 2018

Auto merge of #5814 - alexcrichton:fix-all-targets, r=alexcrichton
cargo fix: Pass `--all-targets` to `cargo fix` by default

This'll help fix as much code as possible, including tests!

Closes #5739

@bors bors closed this in #5814 Jul 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.