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

Projects
None yet
4 participants
@hallfox
Copy link
Contributor

hallfox commented Oct 25, 2017

Allows types to not have the copy trait automatically derived.

Resolve #962 - implement --no-copy with tests
generated bindings from test headers
@highfive

This comment has been minimized.

Copy link
Collaborator

highfive commented Oct 25, 2017

warning Warning warning

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

This comment has been minimized.

Copy link
Contributor Author

hallfox commented Oct 25, 2017

@fitzgen
Copy link
Member

fitzgen left a comment

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("::");

This comment has been minimized.

@fitzgen

fitzgen Oct 25, 2017

Member

Nitpick: no need for this new line.

@fitzgen

This comment has been minimized.

Copy link
Member

fitzgen commented Oct 25, 2017

@bors-servo delegate+

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 25, 2017

✌️ @hallfox can now approve this pull request

@fitzgen

This comment has been minimized.

Copy link
Member

fitzgen commented Oct 26, 2017

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 26, 2017

📌 Commit f7e370a has been approved by fitzgen

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 26, 2017

⌛️ Testing commit f7e370a with merge 716cec7...

bors-servo added a commit that referenced this pull request Oct 26, 2017

Auto merge of #1099 - hallfox:no-copy, r=fitzgen
Resolve #962 - implement --no-copy with tests

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

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 26, 2017

☀️ 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

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details

@hallfox hallfox deleted the hallfox:no-copy branch Oct 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.