mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-13 15:51:22 +00:00

Check for overflow in `assemble_candidates_after_normalizing_self_ty` Prevents a stack overflow (⚠️ ❗) in the new solver when we have param-env candidates that look like: `T: Trait<Assoc = <T as Trait>::Assoc>` The current error message looks bad, but that's because we don't distinguish overflow and other ambiguity errors. I'll break that out into a separate PR since the fix may be controversial. r? `@lcnr`