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

Generate geckolib structs with -no-bitfield-methods #11827

Merged
merged 1 commit into from Jun 22, 2016
Merged

Conversation

@SimonSapin
Copy link
Member

SimonSapin commented Jun 22, 2016

This makes rust-bindgen not generate a bunch of methods that were not used, including const fn ones.

This helps with #11815 since const fn is unstable.

(Note that running regen_style_structs.sh without changing it made a bunch of unrelated changes to structs_*.rs, probably because I had a different Gecko version. I first made a commit of that, then added -no-bitfield-methods, regenerated, made another commit, then removed the first commit with git rebase -i master@{u}.)

r? @emilio


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix part of #11815 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require new tests because they’re only removing dead code.

This change is Reviewable

This makes rust-bindgen not generate a bunch of methods that were not
used, including `const fn` ones.

This helps with #11815 since `const fn` is unstable.
@SimonSapin SimonSapin mentioned this pull request Jun 22, 2016
7 of 7 tasks complete
@emilio
Copy link
Member

emilio commented Jun 22, 2016

@bors-servo: r+

Thanks for doing this! :)

@bors-servo
Copy link
Contributor

bors-servo commented Jun 22, 2016

📌 Commit cdd4a1d has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented Jun 22, 2016

Testing commit cdd4a1d with merge 053c2ae...

bors-servo added a commit that referenced this pull request Jun 22, 2016
Generate geckolib structs with -no-bitfield-methods

<!-- Please describe your changes on the following line: -->

This makes rust-bindgen not generate a bunch of methods that were not used, including `const fn` ones.

This helps with #11815 since `const fn` is unstable.

(Note that running `regen_style_structs.sh` without changing it made a bunch of unrelated changes to `structs_*.rs`, probably because I had a different Gecko version. I first made a commit of that, then added `-no-bitfield-methods`, regenerated, made another commit, then removed the first commit with `git rebase -i master@{u}`.)

r? @emilio

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix part of #11815 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require new tests because they’re only removing dead code.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11827)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 22, 2016

@bors-servo bors-servo merged commit cdd4a1d into master Jun 22, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@SimonSapin SimonSapin deleted the geckolib-no-const-fn branch Jun 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.