-
Notifications
You must be signed in to change notification settings - Fork 900
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
Formatting changes semantics of imports #3750
Comments
This is not reproducible with the latest rustfmt, both in stable and nightly. Would you mind telling us which version you have used? |
|
@Robbepop Never mind, this is actually reproducible with |
yes it is enabled! |
I have a project with a module that re-exports other definitions as follows:
Oftentimes I want to use the
vec!
macro andVec
type like so:However,
rustfmt
thinks this is worse thanHowever, this has different semantics since
vec
above refers to thevec!
macro whileself
in the replaced variant refers to thevec
submodule ofdefs
. So I can no longer access thevec!
macro wheneverrustfmt
replaced this.To be honest: I don't know whether this is a
rustfmt
bug or a Rust compiler bug.The text was updated successfully, but these errors were encountered: