-
Notifications
You must be signed in to change notification settings - Fork 909
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
Canonicalise use foo::{self}
with merge_derives
#4574
Comments
I also find that converting |
Correct. Thanks @goffrie! Going to go ahead and close, but thanks for reaching out @ndmitchell |
Is |
`foo::self` isn't legal Rust syntax, oddly enough.
…On Thu., Dec. 17, 2020, 02:52 Neil Mitchell, ***@***.***> wrote:
Is foo::{self} to foo::self unsound? That isn't done and would be
reasonable from reading above, I think.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4574 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJO2TX26Y6MS3HCYEDOJMLSVHBEXANCNFSM4ULVHONA>
.
|
Correct, we actually used to have a bug where rustfmt would do the requested behavior (#3808). The requested feature is definitely not something we should do |
With
merge_derives
enabled,rustfmt
(rustfmt 1.4.22-nightly (97d0301 2020-10-04)) changes:use foo::{bar}
touse foo::bar
use foo::self
touse foo
But it doesn't change
use foo::{self}
touse foo
. Such statements can arise through automated refactoring and would be useful to transform.The text was updated successfully, but these errors were encountered: