Uh oh!
There was an error while loading. Please reload this page.
keep the AST node-id when lowering ExprKind::Range - #40764
Merged
Conversation
When the Range expression is the root of a constant, its node-id is used for the def-id of the body, so it has to be preserved in the AST -> HIR lowering. Fixesrust-lang#40749.
eddyb
commented
Mar 23, 2017
Contributor
@bors r+ |
bors
commented
Mar 23, 2017
Collaborator
📌 Commit 8ffe406 has been approved by |
nikomatsakis
commented
Mar 23, 2017
Contributor
Marking as beta-accepted. Small patch, regression. cc @rust-lang/compiler |
alexcrichton added a commit
to alexcrichton/rust
that referenced
this pull request
Mar 25, 2017
keep the AST node-id when lowering ExprKind::Range When the Range expression is the root of a constant, its node-id is used for the def-id of the body, so it has to be preserved in the AST -> HIR lowering. Fixesrust-lang#40749. r? @eddyb beta-nominating because regression
bors
commented
Mar 25, 2017
Collaborator
⌛ Testing commit 8ffe406 with merge 4e9953d... |
bors
commented
Mar 25, 2017
Collaborator
💔 Test failed - status-travis |
arielb1
commented
Mar 25, 2017
ContributorAuthor
bors
commented
Mar 25, 2017
Collaborator
⌛ Testing commit 8ffe406 with merge 3e8c572... |
bors
commented
Mar 25, 2017
Collaborator
💔 Test failed - status-travis |
arielb1
commented
Mar 25, 2017
ContributorAuthor
bors
commented
Mar 27, 2017
Collaborator
⌛ Testing commit 8ffe406 with merge ccce2c6... |
bors
commented
Mar 27, 2017
Collaborator
☀️ Test successful - status-appveyor, status-travis |
alexcrichton
commented
Apr 1, 2017
Member
@arielb1 unfortunately this doesn't apply cleanly to the beta branch, would you mind looking into the backport? |
Merged
frewsxcv added a commit
to frewsxcv/rust
that referenced
this pull request
Apr 3, 2017
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.
When the Range expression is the root of a constant, its node-id is
used for the def-id of the body, so it has to be preserved in the AST ->
HIR lowering.
Fixes#40749.
r? @eddyb
beta-nominating because regression