Use structured suggestions for unconstrained generic parameters on impl blocks by oli-obk · Pull Request #127966 · rust-lang/rust (original) (raw)

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Jul 19, 2024

@rust-timer

`` [Unrolled build for](/rust-lang-ci/rust/commit/49a749a1c36a15d55a7cd8462a1a8a7800ca321d "Unrolled build for #127966 Rollup merge of #127966 - oli-obk:structured_diag, r=compiler-errors

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.") rust-lang#127966 ``

[49a749a](/rust-lang-ci/rust/commit/49a749a1c36a15d55a7cd8462a1a8a7800ca321d)

Rollup merge of rust-lang#127966 - oli-obk:structured_diag, r=compiler-errors

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.