-
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
Fix false positives for implicit_return
and empty_loop
on macro expansion.
#3577
Conversation
LGTM! We already have a convenience function to check for macro expansions: rust-clippy/clippy_lints/src/utils/mod.rs Lines 73 to 76 in fc24fce
Please use this function instead of the |
Done. |
Co-Authored-By: daxpedda <1645124+daxpedda@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! There's currently something wrong with travis. I'll merge this as soon as travis works again.
Yeah: rust-lang/rust#57111. |
This comment has been minimized.
This comment has been minimized.
Fix false positives for `implicit_return` and `empty_loop` on macro expansion. This PR only fixes `implicit_return` and `empty_loop`. But I suspect this bug may affect a lot of other lints.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors r+ |
📌 Commit 1979144 has been approved by |
Fix false positives for `implicit_return` and `empty_loop` on macro expansion. This PR only fixes `implicit_return` and `empty_loop`. But I suspect this bug may affect a lot of other lints.
💔 Test failed - status-appveyor |
😕 that's not me is it?
|
Oh yeah this is fixed in #3581 |
@bors rollup |
Fix false positives for `implicit_return` and `empty_loop` on macro expansion. This PR only fixes `implicit_return` and `empty_loop`. But I suspect this bug may affect a lot of other lints.
Please run |
And here I was sure I didn't forget anything this time. |
That's not me, that's our CI 😄 @bors r+ Thanks! |
📌 Commit 2d96ef1 has been approved by |
Fix false positives for `implicit_return` and `empty_loop` on macro expansion. This PR only fixes `implicit_return` and `empty_loop`. But I suspect this bug may affect a lot of other lints.
☀️ Test successful - status-appveyor, status-travis |
This PR only fixes
implicit_return
andempty_loop
.But I suspect this bug may affect a lot of other lints.