mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-18 19:06:14 +00:00

Use structured suggestions for unconstrained generic parameters on impl blocks I did not deduplicate with `UnusedGenericParameter`, because in contrast to type declarations, just using a generic parameter in an impl isn't enough, it must be used with the right variance and not just as part of a projection.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.