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

Derive PartialEq Analysis #907

Merged
merged 12 commits into from
Aug 14, 2017
Merged

Derive PartialEq Analysis #907

merged 12 commits into from
Aug 14, 2017

Conversation

photoszzt
Copy link
Contributor

Fix: #878 r? @fitzgen

@bors-servo
Copy link

☔ The latest upstream changes (presumably #906) made this pull request unmergeable. Please resolve the merge conflicts.

@fitzgen
Copy link
Member

fitzgen commented Aug 14, 2017

@bors-servo r+

Thanks @photoszzt, looks perfect :)

We should figure out a way to DRY up all of these derive-related analysis, but I need to think about how to change our abstractions to be more precise about this stuff some more.

@bors-servo
Copy link

📌 Commit dc2baed has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit dc2baed with merge 7e84c43...

bors-servo pushed a commit that referenced this pull request Aug 14, 2017
@photoszzt
Copy link
Contributor Author

@fitzgen the CanDeriveTrivially{Debug, Copy...} are also very redundant.

I notice that the stable rust is still generating the BindgenUnion with Copy field. Next step would be enable those in stable. I'm not sure which version of Rust has stable union. 19? Or something previous?

@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: fitzgen
Pushing 7e84c43 to master...

@bors-servo bors-servo merged commit dc2baed into rust-lang:master Aug 14, 2017
@fitzgen
Copy link
Member

fitzgen commented Aug 14, 2017

I notice that the stable rust is still generating the BindgenUnion with Copy field. Next step would be enable those in stable. I'm not sure which version of Rust has stable union. 19? Or something previous?

You can do rustup update stable to get the latest stable rustc toolchain, and then rustc --version.

I thought we should be generating unions after @tmfink's PR that just landed. It looks like it is to me. All the _1_0.rs files targetting older stable rust use BindgenUnion and all the others targeting the latest stable release are using union.

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.

3 participants