-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 mis-uses of projection mode #32344
Conversation
It's pretty unfortunate to have this as a source of bugs. I did a quick audit of uses of |
Travis shows failure for the added test.
|
A couple of places where we construct a fresh inference context were incorrectly assuming that we were past coherence checking. This commit corrects them to use `Topmost` rather than `AnyFinal` as the projection mode. Fixes rust-lang#32324
Test fixed. Just needs a review. cc @eddyb if you feel like snipe-reviewing :) |
@aturon I still think the names are non-obvious, but the diff is tiny and LGTM. |
📌 Commit 09263a6 has been approved by |
Fix mis-uses of projection mode A couple of places where we construct a fresh inference context were incorrectly assuming that we were past coherence checking. This commit corrects them to use `Topmost` rather than `AnyFinal` as the projection mode. Fixes #32324 r? @nikomatsakis
A couple of places where we construct a fresh inference context were
incorrectly assuming that we were past coherence checking. This commit
corrects them to use
Topmost
rather thanAnyFinal
as the projection mode.Fixes #32324
r? @nikomatsakis