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

Resolve #962 - implement --no-copy with tests #1099

Merged
merged 2 commits into from
Oct 26, 2017

Conversation

hallfox
Copy link
Contributor

@hallfox hallfox commented Oct 25, 2017

Allows types to not have the copy trait automatically derived.

generated bindings from test headers
@highfive
Copy link

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@hallfox
Copy link
Contributor Author

hallfox commented Oct 25, 2017

r?@fitzgen

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Looks great! 👍

Could you also extend the documentation at https://rust-lang-nursery.github.io/rust-bindgen/nocopy.html to account for this change? (book/src/nocopy.md)

Thanks @hallfox !

@@ -2455,8 +2455,16 @@ impl BindgenContext {
/// Check if `--no-partialeq` flag is enabled for this item.
pub fn no_partialeq_by_name(&self, item: &Item) -> bool {
let name = item.canonical_path(self)[1..].join("::");

Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: no need for this new line.

@fitzgen
Copy link
Member

fitzgen commented Oct 25, 2017

@bors-servo delegate+

@bors-servo
Copy link

✌️ @hallfox can now approve this pull request

@fitzgen
Copy link
Member

fitzgen commented Oct 26, 2017

@bors-servo r+

@bors-servo
Copy link

📌 Commit f7e370a has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit f7e370a with merge 716cec7...

bors-servo pushed a commit that referenced this pull request Oct 26, 2017
Resolve #962 - implement --no-copy with tests

Allows types to not have the copy trait automatically derived.
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: fitzgen
Pushing 716cec7 to master...

@bors-servo bors-servo merged commit f7e370a into rust-lang:master Oct 26, 2017
@hallfox hallfox deleted the no-copy branch October 27, 2017 02:19
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