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