]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #100483 - compiler-errors:point-to-projection-too, r=jyn514
authorMatthias Krüger <matthias.krueger@famsik.de>
Mon, 15 Aug 2022 08:28:11 +0000 (10:28 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Aug 2022 08:28:11 +0000 (10:28 +0200)
Point to generic or arg if it's the self type of unsatisfied projection predicate

We do this for `TraitPredicate`s in `point_at_type_arg_instead_of_call_if_possible` and `point_at_arg_instead_of_call_if_possible`, so also do it for `ProjectionPredicate`.

Improves spans for a lot of unit tests.

1  2 
compiler/rustc_typeck/src/check/fn_ctxt/checks.rs