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 const trans #32430

Merged
merged 1 commit into from
Mar 23, 2016
Merged

Fix const trans #32430

merged 1 commit into from
Mar 23, 2016

Conversation

sanxiyn
Copy link
Member

@sanxiyn sanxiyn commented Mar 22, 2016

Fix #30615.

The idea was that when there are N autoderefs, first do N-1 derefs and check for autoref. If there is autoref, done, if not, do one more deref. But when N is zero, doing one more deref is wrong.

Const was dereferenced when autoderefs is zero.
@rust-highfive
Copy link
Collaborator

r? @Aatch

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

@arielb1
Copy link
Contributor

arielb1 commented Mar 23, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Mar 23, 2016

📌 Commit 308dc55 has been approved by arielb1

@eddyb
Copy link
Member

eddyb commented Mar 23, 2016

@bors rollup

eddyb added a commit to eddyb/rust that referenced this pull request Mar 23, 2016
Fix const trans

Fix rust-lang#30615.

The idea was that when there are N autoderefs, first do N-1 derefs and check for autoref. If there is autoref, done, if not, do one more deref. But when N is zero, doing one more deref is wrong.
bors added a commit that referenced this pull request Mar 23, 2016
Rollup of 11 pull requests

- Successful merges: #32404, #32420, #32423, #32425, #32429, #32430, #32431, #32434, #32437, #32441, #32443
- Failed merges:
@bors bors merged commit 308dc55 into rust-lang:master Mar 23, 2016
@sanxiyn sanxiyn deleted the const-trans branch March 24, 2016 07:45
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.

6 participants