missing_const_for_fn
triggers for derives
#8854
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
missing_const_for_fn
accidentally triggers for code generated by derives which you generally don't have any influence on.Lint Name
missing_const_for_fn
Reproducer
I tried this code:
Playground
I saw this happen:
Weirdly the span is a bit different on the playground.
I expected to see this happen:
The lint shouldn't trigger. Also even if it would trigger, the span is somehow on the
repr
and not on the derive.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: