[arithmetic_side_effects] triggers on macro-generated code #10417
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
The problem is that
arithmetic_side_effects
triggers on the code generated by macro. In my case byquote!
macro.I think this issue is related to #9757.
So as said in #9757 dtolnay/quote#232 (comment) this thing should be fixed on
clippy
side, not onquote
side.arithmetic_side_effects
is being triggered only when I have,
at the end.Lint Name
arithmetic_side_effects
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
Successful pass
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: