-
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
Suppress the triggering of some lints in derived structures #10203
Conversation
r? @giraffate (rustbot has picked a reviewer for you, use r? to override) |
This is a reference to adding tests for the derived struct: #9043 If you have any questions, feel free to ask me. |
Hey @c410-f3r, would you mind listing the lints that are affected by this change, for the changelog entry? 🙃 |
Thank you @giraffate |
Done |
This doesn't fix #9757 as |
Thank you! |
☔ The latest upstream changes (presumably #10310) made this pull request unmergeable. Please resolve the merge conflicts. |
Hey @c410-f3r would you be able to resolve the merge conflicts here? I'm happy to help in any way I can, but seems like you've got it covered. |
Well, that is unfortunate... Tests are now using statements that were manually created. |
The actual fix needed more than a rebase but everything should probably be fine now |
ping @giraffate I can re-roll if you don't have the time to review |
☔ The latest upstream changes (presumably #10585) made this pull request unmergeable. Please resolve the merge conflicts. |
Thanks for letting me know! I'll review this in this week. |
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.
Overall looks good. I made small comments.
question: For shadow_reuse
, does this pull request just add a test?
changelog: FP: [integer_arithmetic], [arithmetic_side_effects], [shadow_reuse]: No longer lint inside proc macros
Yeah, just modified the changelog. Initially I tried to solve #9757 but it turns out that such thing shouldn't happen because |
@bors r+ Thanks! |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #10185
Fixes #10417
For
integer_arithmetic
,arithmetic_side_effects
andshadow_reuse
.Not sure how to test these use-cases so feel free to point any method or any related PR.changelog: FP: [
integer_arithmetic
], [arithmetic_side_effects
]: No longer lint inside proc macros#10203