-
Notifications
You must be signed in to change notification settings - Fork 902
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
rustfmt ignores the edition setting? #4645
Comments
Just want to verify this is correct and is indeed how you installed rustfmt? That |
grrr... I'm probably not the first one hitting this issue, right? Any chance the "rustfmt" crate gets yanked? Not sure about the versioning issue you reported, but the above method was indeed not what I did,... I messed up the different systems I'm working on in my head. My installation method was the nixpkgs-mozilla nixpkgs overlay:
|
see #4343
This output is definitively indicative of having an issue on your system, notably a very, very old cargo fmt bin being invoked. Would advise explicitly uninstalling the |
Okay, so it seems that there was a |
Describe the bug
My crate is
edition = "2018"
, but:To Reproduce
git checkout c638b21c1e09ba7a0a76e0fa5d930fbc11abe62d
(current master)cargo fmt
grep edition Cargo.toml
Expected behavior
It formats the code.
Meta
rustfmt 1.4.25-stable (0f29ff6 2020-11-11)
cargo install rustfmt
cargo fmt
The text was updated successfully, but these errors were encountered: