-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A few fixes for associated types #26147
Conversation
49928f3
to
3569797
Compare
…t when associated types are involved.
So, some thoughts: First, I think trans shouldn't encounter this path, since we always know what trait a closure implements, but I could be wrong -- perhaps it encounter ambiguity in some other way? Presumably something is missing in this explanation, because (according to you) normalization is not needed during typeck and (according to me) this path doesn't matter during trans, but that would imply that this fix doesn't fix anything, right? Second, I think we could make the code more robust in two ways:
(Longer term, as I keep mentioning, I think I'd like to move to a lazy normalization scheme.) |
Actually, we probably can't really encounter this during trans (because there is no potential ambiguous impl for |
@arielb1 ok that's what I thought. Are you going to push an updated version with two fns, as we discussed in IRC? (If so, please do ping me when it's ready...) |
@bors r+ -- this looks nice. thanks for iterating with me. |
📌 Commit 21fd312 has been approved by |
Fixes #25700
r? @nikomatsakis