mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
c5c0aa143c
Check for `<&NotClone as Clone>::clone()` calls and suggest to add Clone trait appropriately Added recursive checking back up the HIR to see if a `Clone` suggestion would be helpful. Addresses https://github.com/rust-lang/rust/issues/112857 Largely based on: https://github.com/rust-lang/rust/pull/112977