Commit db7ec72
authored
Rollup merge of #153751 - arferreira:fix-useless-e0284-suggestion, r=lcnr
Detect existing turbofish on method calls to suppress useless suggestion
`expr_inferred_arg_iter` hardcoded `have_turbofish: false` for `MethodCall` expressions, while the `Path` case properly checked for existing type arguments via `segment.args`. This meant the "consider specifying the generic arguments" suggestion always fired on method calls, even when the user already had a turbofish, producing a suggestion that just rewrote user syntax into fully qualified form without resolving anything.
Fixes rust-lang/rust#153732.
cc @eggyal0 file changed
0 commit comments