diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-06-28 09:02:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-28 09:02:43 -0500 |
commit | 810735a846c65b2a6a2dd2ef6b7e476931ff55a1 (patch) | |
tree | 1fc19b52f2da00faba19502fd6b5d4cbb8cebb18 /components/script/dom/webglbuffer.rs | |
parent | 3a453a4a8bbe0292eaed5c82001453289bf8a853 (diff) | |
parent | 3932a82a2c7f84c8770158ea04f4909d7aac3beb (diff) | |
download | servo-810735a846c65b2a6a2dd2ef6b7e476931ff55a1.tar.gz servo-810735a846c65b2a6a2dd2ef6b7e476931ff55a1.zip |
Auto merge of #11884 - servo:antidiscrimination, r=nox
Replace usage of std::intrinsics::discriminant_value with `match`
<!-- Please describe your changes on the following line: -->
Replace usage of `std::intrinsics::discriminant_value` with per-enum generated code that uses `match` expressions. The LLVM IR shows that this optimizes well in release mode.
---
<!-- 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.
<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require new tests because they shouldn’t change any behavior.
<!-- 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/11884)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/webglbuffer.rs')
0 files changed, 0 insertions, 0 deletions