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 mis-uses of projection mode #32344

Merged
merged 1 commit into from
Mar 21, 2016
Merged

Fix mis-uses of projection mode #32344

merged 1 commit into from
Mar 21, 2016

Conversation

aturon
Copy link
Member

@aturon aturon commented Mar 19, 2016

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

@aturon
Copy link
Member Author

aturon commented Mar 19, 2016

It's pretty unfortunate to have this as a source of bugs. I did a quick audit of uses of AnyFinal and the rest seem quite clearly post-coherence. But I suspect we'll continue to see ICEs in this area until we remove the phase split around specialization graph construction.

@sanxiyn
Copy link
Member

sanxiyn commented Mar 20, 2016

Travis shows failure for the added test.

failures:
    [run-pass] run-pass/issue-32324.rs

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
@aturon
Copy link
Member Author

aturon commented Mar 20, 2016

Test fixed. Just needs a review.

cc @eddyb if you feel like snipe-reviewing :)

@eddyb
Copy link
Member

eddyb commented Mar 20, 2016

@aturon I still think the names are non-obvious, but the diff is tiny and LGTM.

@aturon
Copy link
Member Author

aturon commented Mar 20, 2016

@eddyb Yep, happy to try to improve the names separately (if we can come up with something good).

@bors: r=eddyb

@bors
Copy link
Contributor

bors commented Mar 20, 2016

📌 Commit 09263a6 has been approved by eddyb

@bors
Copy link
Contributor

bors commented Mar 21, 2016

⌛ Testing commit 09263a6 with merge 7f5c568...

bors added a commit that referenced this pull request Mar 21, 2016
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
@bors bors merged commit 09263a6 into rust-lang:master Mar 21, 2016
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.

5 participants