mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-13 23:58:34 +00:00

`suggest_borrow_generic_arg`: use the correct generic args The suggestion now gets calls' generic arguments from the callee's type to handle cases where the callee isn't an identifier expression. Fixes rust-lang/rust#145164.