-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Don't turn on edition lints for unfixed crates #6247
Conversation
Currently Cargo runs the risk of turning on the edition lints for crates which `cargo fix` isn't actually fixing, which means you'll get a huge deluge of lints that would otherwise be automatically fixable! Fix this situation by only enabling lints in the same cases that we're actually applying fixes. Closes rust-lang-nursery/rustfix#150
This improves the situation somewhat, but I think that not fixing path dependencies is still a bug. The Servo repository contains 67 crates. Fixing them one by one is not only tedious, but often doesn’t work because feature selection changes when building a crate directly rather than as a dependency of something that enables an optional feature. |
We can try to consider a change like |
Go, go incremental improvements. @bors: r+ |
📌 Commit 4f784a1 has been approved by |
Don't turn on edition lints for unfixed crates Currently Cargo runs the risk of turning on the edition lints for crates which `cargo fix` isn't actually fixing, which means you'll get a huge deluge of lints that would otherwise be automatically fixable! Fix this situation by only enabling lints in the same cases that we're actually applying fixes. Closes rust-lang-nursery/rustfix#150
☀️ Test successful - status-appveyor, status-travis |
[beta]: Don't turn on edition lints for unfixed crates This is a backport of #6247
This commit updates Cargo to include rust-lang/cargo#6247 which contains a relatively serious fix for `cargo fix`.
Currently Cargo runs the risk of turning on the edition lints for crates
which
cargo fix
isn't actually fixing, which means you'll get a hugedeluge of lints that would otherwise be automatically fixable! Fix this
situation by only enabling lints in the same cases that we're actually
applying fixes.
Closes rust-lang-nursery/rustfix#150