Uh oh!
There was an error while loading. Please reload this page.
do not fetch variance for items when equating - #41913
Merged
Merged
Conversation
Fixesrust-lang#41849. Problem was that evaluating the constant expression required evaluating a trait, which would equate types, which would request variance information, which it would then discard. However, computing the variance information would require determining the type of a field, which would evaluate the constant expression. (This problem will potentially arise *later* as we move to more sophisticated constants, however, where we need to check subtyping. We can tackle that when we come to it.)
nikomatsakis
commented
May 11, 2017
ContributorAuthor
Nominated for beta -- regression. |
eddyb
commented
May 11, 2017
Contributor
@bors r+ |
bors
commented
May 11, 2017
Collaborator
📌 Commit d22d1fe has been approved by |
bors
commented
May 11, 2017
Collaborator
bors added a commit
that referenced
this pull request
May 11, 2017
do not fetch variance for items when equating Fixes#41849. Problem was that evaluating the constant expression required evaluating a trait, which would equate types, which would request variance information, which it would then discard. However, computing the variance information would require determining the type of a field, which would evaluate the constant expression. (This problem will potentially arise *later* as we move to more sophisticated constants, however, where we need to check subtyping. We can tackle that when we come to it.) r? @eddyb
bors
commented
May 11, 2017
Collaborator
☀️ Test successful - status-appveyor, status-travis |
brson
commented
May 23, 2017
Contributor
Accepted for beta because I trust niko. |
brson
commented
May 23, 2017
Contributor
Doesn't pick cleanly @nikomatsakis |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes#41849. Problem was that evaluating the constant expression
required evaluating a trait, which would equate types, which would
request variance information, which it would then discard. However,
computing the variance information would require determining the type of
a field, which would evaluate the constant expression.
(This problem will potentially arise later as we move to more sophisticated
constants, however, where we need to check subtyping. We can tackle that
when we come to it.)
r? @eddyb