-
Notifications
You must be signed in to change notification settings - Fork 706
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
Conversation
generated bindings from test headers
r?@fitzgen |
There was a problem hiding this 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 !
src/ir/context.rs
Outdated
@@ -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("::"); | |||
|
There was a problem hiding this comment.
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.
@bors-servo delegate+ |
✌️ @hallfox can now approve this pull request |
@bors-servo r+ |
📌 Commit f7e370a has been approved by |
Resolve #962 - implement --no-copy with tests Allows types to not have the copy trait automatically derived.
☀️ Test successful - status-travis |
Allows types to not have the copy trait automatically derived.