Skip to content

Add a Builder::blacklist_type #991

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

Merged
merged 1 commit into from
Sep 14, 2017

Conversation

alexeyzab
Copy link
Contributor

This deprecates Builder::hide_type.
Related to #984.

  • Add Builder::blacklist_type, that does the same thing as hide_type
  • Mark Builder::hide_type as #[deprecated = "Use blacklist_type instead"]
  • Make hide_type delegate to blacklist_type
  • Rename the BindgenOptions::hidden_types member to BindgenOptions::blacklisted_types
  • Rename ir::context::BindgenContext::hidden_by_name to blacklisted_by_name
  • Rename ir::item::Item::is_hidden to is_blacklisted

r? @fitzgen

This deprecates `Builder::hide_type`.
Related to rust-lang#984.

- [x] Add Builder::blacklist_type, that does the same thing as hide_type
- [x] Mark Builder::hide_type as #[deprecated = "Use blacklist_type instead"]
- [x] Make hide_type delegate to blacklist_type
- [x] Rename the BindgenOptions::hidden_types member to BindgenOptions::blacklisted_types
- [x] Rename ir::context::BindgenContext::hidden_by_name to blacklisted_by_name
- [x] Rename ir::item::Item::is_hidden to is_blacklisted
@highfive
Copy link

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @fitzgen (or someone else) soon.

@fitzgen
Copy link
Member

fitzgen commented Sep 14, 2017

Thanks @alexeyzab ! Are you interested in hacking on bindgen some more? We have lots of E-less-easy issues that could be good now that you're familiar with the basic bindgen workflow :)

@bors-servo r+

@bors-servo
Copy link

📌 Commit 8285552 has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit 8285552 with merge 80eff06...

bors-servo pushed a commit that referenced this pull request Sep 14, 2017
Add a `Builder::blacklist_type`

This deprecates `Builder::hide_type`.
Related to #984.

- [x] Add Builder::blacklist_type, that does the same thing as hide_type
- [x] Mark Builder::hide_type as #[deprecated = "Use blacklist_type instead"]
- [x] Make hide_type delegate to blacklist_type
- [x] Rename the BindgenOptions::hidden_types member to BindgenOptions::blacklisted_types
- [x] Rename ir::context::BindgenContext::hidden_by_name to blacklisted_by_name
- [x] Rename ir::item::Item::is_hidden to is_blacklisted

r? @fitzgen
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: fitzgen
Pushing 80eff06 to master...

@bors-servo bors-servo merged commit 8285552 into rust-lang:master Sep 14, 2017
@alexeyzab
Copy link
Contributor Author

@fitzgen Sure! Any particular issues you'd recommend? :)

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