Rollup merge of #142477 - JonathanBrouwer:associated-type-suggestion, r=WaffleLapkin

Fix incorrect suggestion when calling an associated type with a type anchor

`sugg_span` here is the span of the call expression.
That span here is the `<Self>::Assoc`, which is exactly what we need here (even though I would expect it to include the arguments, but I guess it doesn't)

r? ``@WaffleLapkin``
One commit with failing tests and one that fixes it for reviewability

closes rust-lang/rust#142473
This commit is contained in:
Matthias Krüger 2025-06-14 11:27:12 +02:00 committed by GitHub
commit 8627fa6eda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available