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

Fixes issue #11004 #35749

Merged
merged 1 commit into from
Aug 18, 2016
Merged

Fixes issue #11004 #35749

merged 1 commit into from
Aug 18, 2016

Conversation

GuillaumeGomez
Copy link
Member

@sophiajt
Copy link
Contributor

Looks good.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 17, 2016

📌 Commit 356615b has been approved by jonathandturner

#[cfg(not(works))]
unsafe fn access(n:*mut A) -> (i32, f64) {
let x : i32 = n.x; //~ ERROR attempted access of field `x`
//~| NOTE `A` is a native pointer; perhaps you need to deref with `(*A).x`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely A isn't the native pointer, n is. Also (*A).x isn't a valid expression. I think this should be either "n is a native pointer; perhaps you need to deref with (*n).x" or "*mut A is a native pointer; perhaps you need to deref with (*n).x".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ollie27 - good catch. This is what I get for reviewing with a sleepy brain

@sophiajt
Copy link
Contributor

@bors r-

I missed that the wrong message was given.

@GuillaumeGomez
Copy link
Member Author

Updated.

@sophiajt
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 17, 2016

📌 Commit feeed0b has been approved by jonathandturner

eddyb added a commit to eddyb/rust that referenced this pull request Aug 18, 2016
bors added a commit that referenced this pull request Aug 18, 2016
Rollup of 12 pull requests

- Successful merges: #35346, #35734, #35739, #35740, #35742, #35744, #35749, #35750, #35751, #35756, #35766, #35768
- Failed merges:
@bors bors merged commit feeed0b into rust-lang:master Aug 18, 2016
@GuillaumeGomez GuillaumeGomez deleted the raw_field branch August 18, 2016 15:58
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.

4 participants