-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Teach suspicious_else_formatting
about if .. {..} {..}
#3341
Conversation
This looks like a rustc bug: we got an |
Minimal(-ish) reproducer here: https://github.com/HMPerson1/rustc-macros-span-bug |
Reported as rust-lang/rust#55232 |
1582a3f
to
faa029f
Compare
@HMPerson1 sorry this took so long to review, the changes look good to me! Could you rebase one more time? |
faa029f
to
c9e48ac
Compare
c9e48ac
to
05ae391
Compare
@bors r+ thanks! |
📌 Commit 05ae391 has been approved by |
Teach `suspicious_else_formatting` about `if .. {..} {..}` We essentially treat bare blocks `{..}` identically to `if .. {..}`, except for different lint messages. Fixes #3044
☀️ Test successful - status-appveyor, status-travis |
We essentially treat bare blocks
{..}
identically toif .. {..}
, except for different lint messages.Fixes #3044