mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-10 14:17:47 +00:00

Fix dyn -> param suggestion in struct ICEs Makes the logic from #138042 a bit less ICEy and more clean. Also fixes an incorrect suggestion when the struct already has generics. I'll point out the major changes and observations in the code. Fixes #138229 Fixes #138211 r? nnethercote since you reviewed the original pr, or re-roll if you don't want to review this
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.