Skip to content
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

fix: Properly unify receivers during method resolution #11743

Merged
merged 5 commits into from
Mar 17, 2022

Conversation

flodiebold
Copy link
Member

This fixes our type inference problems with DynMap; the problem there were the projection types in

impl<P: Policy> KeyMap<Key<P::K, P::V, P>>

which messed up the naive type equality check we did. It also actually simplifies the logic though, IMO. I also added a fix for associated const resolution that I noticed (visibility not being taken into account).

@flodiebold
Copy link
Member Author

(CC #8961)

@flodiebold
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 17, 2022

@bors bors bot merged commit dbc697c into rust-lang:master Mar 17, 2022
@lnicola
Copy link
Member

lnicola commented Mar 17, 2022

Did this also fix the annoying is_unknown was called on a non-concrete constant value! errors?

@flodiebold flodiebold deleted the dyn-map-fix branch March 17, 2022 16:49
@flodiebold
Copy link
Member Author

flodiebold commented Mar 17, 2022

Yeah, though I didn't do it intentionally 😅 At least I didn't see them in the analysis-stats run.

@lnicola
Copy link
Member

lnicola commented Mar 17, 2022

Now if only rust-lang/chalk#754 got merged...

@lnicola
Copy link
Member

lnicola commented Mar 17, 2022

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants