You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inline clippy_utils::ptr into needless_pass_by_value (#15760)
While looking into
rust-lang/rust-clippy#15569, I stumbled upon
`clippy_utils::ptr`.
This module was created in
rust-lang/rust-clippy#2117, to share the logic
from `ptr_arg` with `needless_pass_by_value`. But then later,
rust-lang/rust-clippy#8409 removed the use of
the logic from `ptr_arg`, which left `needless_pass_by_value` as the
only user of this module.
Still, I wanted to try to add docs to the module, but the two functions
looked all too specific, so I thought it'd be better to just move them
to `needless_pass_by_value`, in the hopes that whoever is looking at
that lint will hopefully have enough context to understand what those
functions are doing.
changelog: none
0 commit comments