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

Don't turn on edition lints for unfixed crates #6247

Merged
merged 1 commit into from
Nov 2, 2018

Conversation

alexcrichton
Copy link
Member

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

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
@SimonSapin
Copy link
Contributor

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.

@alexcrichton
Copy link
Member Author

We can try to consider a change like cargo fix --all later, but that's a separate feature request from fixing this bug.

@dwijnand
Copy link
Member

dwijnand commented Nov 1, 2018

Go, go incremental improvements.

@bors: r+

@bors
Copy link
Contributor

bors commented Nov 1, 2018

📌 Commit 4f784a1 has been approved by dwijnand

@bors
Copy link
Contributor

bors commented Nov 1, 2018

⌛ Testing commit 4f784a1 with merge 6026fc3...

bors added a commit that referenced this pull request Nov 1, 2018
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
@bors
Copy link
Contributor

bors commented Nov 2, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: dwijnand
Pushing 6026fc3 to master...

@bors bors merged commit 4f784a1 into rust-lang:master Nov 2, 2018
@alexcrichton alexcrichton deleted the fix-less branch November 2, 2018 14:16
bors added a commit that referenced this pull request Nov 2, 2018
[beta]: Don't turn on edition lints for unfixed crates

This is a backport of #6247
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Nov 2, 2018
This commit updates Cargo to include rust-lang/cargo#6247 which contains
a relatively serious fix for `cargo fix`.
@ehuss ehuss modified the milestones: 1.32.0, 1.31.0 Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants