Commit Graph

4 Commits

Author SHA1 Message Date
janwi_mac d02b4c8e77 Improve suggestions for unconstrained parameters in impl blocks
When an unconstrained type or lifetime parameter is detected in an
`impl`, provide more specific help based on its usage:
- If the parameter is entirely unused, suggest removing it.
- If it is used in the `impl` body but not the `Self` type, suggest
  including it in the `Self` type and the struct definition.

This also adds a comprehensive UI test for these cases.
2026-05-09 17:50:35 +12:00
Rémy Rakic 130b1d881c move some normalization tests to the dedicated folder 2026-05-07 12:11:55 +02:00
Rémy Rakic 6cc6a63392 add normalization test with defaulted type param with diverging alias
Another example from https://github.com/rust-lang/trait-system-refactor-initiative/issues/139
and which was fixed in 1.89 `nightly-2025-06-18`.
2026-05-07 12:11:55 +02:00
Rémy Rakic 4922210ea6 add normalization test with field with diverging alias
Another example from https://github.com/rust-lang/trait-system-refactor-initiative/issues/139
and which was likely fixed by https://github.com/rust-lang/rust/pull/140672 as well.
2026-05-07 12:11:55 +02:00