Skip to content

Always properly copy values into bindings when mutating the match discriminant #23702

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

Merged
merged 1 commit into from
Mar 25, 2015

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented Mar 25, 2015

The reassignment checker effectively only checks whether the last
assignment in a body affects the discriminant, but it should of course
check all the assignments.

Fixes #23698

…criminant

The reassignment checker effectively only checks whether the last
assignment in a body affects the discriminant, but it should of course
check all the assignments.

Fixes rust-lang#23698
@rust-highfive
Copy link
Contributor

r? @nrc

(rust_highfive has picked a reviewer for you, use r? to override)

@eddyb
Copy link
Member

eddyb commented Mar 25, 2015

r=eddyb @bors r+

@bors
Copy link
Collaborator

bors commented Mar 25, 2015

📌 Commit cc259fb has been approved by eddyb

1 similar comment
@bors
Copy link
Collaborator

bors commented Mar 25, 2015

📌 Commit cc259fb has been approved by eddyb

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 25, 2015
 The reassignment checker effectively only checks whether the last
assignment in a body affects the discriminant, but it should of course
check all the assignments.

Fixes rust-lang#23698
@bors bors merged commit cc259fb into rust-lang:master Mar 25, 2015
@dotdash dotdash deleted the match_reass branch May 8, 2015 08:46
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.

trans codegen injects aliasing of l-values via match ident { ident => ... }
5 participants