extra_unused_type_parameters cannot be applied if fn is used #10633
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
.
Reproducer
I tried this code:
Clippy will suggest to remove the parameter here
but we still have a call of that function with the parameter in the code which prevent
cargo fix
from applying the change smoothly :/If we
--broken-code
it, rustc will error but we can't apply the suggestion of the error unfortunatelyCould we make clippy walk through the function calls and suggest the removal of the param in an auto-applicable way there by itself?
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: