Don't emit ptr_arg warning about unused function arguments #13728
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
If a function argument is unused there is no way to know whether or not its signature is appropriate. It's better to not bother people with lints based entirely on the assumption of one usage when in reality it might have another usage if implemented.
Lint Name
clippy::ptr_arg
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warning, there is no way to know if a slice would be sufficient once the function body is expanded to use the argument.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: