-
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
do not trigger MATCH_LIKE_MATCHES_MACRO lint with attrs #6290
Conversation
r? @flip1995 (rust_highfive has picked a reviewer for you, use r? to override) |
b8fc060
to
c6efae9
Compare
Thanks! |
📌 Commit c6efae9 has been approved by |
do not trigger MATCH_LIKE_MATCHES_MACRO lint with attrs fixed #6289 changelog: do not trigger MATCH_LIKE_MATCHES_MACRO lint for arms with attrs
💔 Test failed - checks-action_test |
You need to update the .fixed file as well https://github.com/rust-lang/rust-clippy/runs/1365306167#step:13:1203 |
@matthiaskrgr it's not easy :) The current .fixed file is correct. CI failed because of the bug in my implementation. I didn't take into account that |
I don't think we can fix this at all. |
ping from triage @alex-700. Could you have any update on this? |
- it can't be solved completely for attrs evaluated into `false` - change applicability to MaybeIncorrect and mention it in docs
c6efae9
to
e266708
Compare
@giraffate thanks for ping! I decided don't add this failed test with attributes, but anyway my changes in lint code do their best and don't lint if "see" some arms with attrs. For example it doesn't lint in the initial case mentioned by @matthiaskrgr (in the case when "tests failed" in clippy dogfood doesn't seem to be relevant to this PR. |
@bors r+ Thanks! |
📌 Commit 84cdb0a has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
fixed #6289
changelog: do not trigger MATCH_LIKE_MATCHES_MACRO lint for arms with attrs