You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ echo'use ::serde::Serialize; mod serde {}'| cargo run --bin rustfmtuse serde::Serialize;mod serde {}
That is, by default the rustfmt cli command is assuming edition 2015. This assumption actually breaks the meaning of some 2018 style imports as seen in #3501.
The current behavior of rustfmt as of 8ec0750 is:
That is, by default the
rustfmt
cli command is assuming edition 2015. This assumption actually breaks the meaning of some 2018 style imports as seen in #3501.Quoting from @topecongiro in #3501 (comment):
The text was updated successfully, but these errors were encountered: