servo/components/script/dom/bindings/codegen
bors-servo af6353df87 Auto merge of #15659 - gregkatz:eliminate_transmute_find_enum, r=Ms2ger
Eliminate a mem::transmute in CodeGen

<!-- Please describe your changes on the following line: -->
Eliminate a mem::transmute in CodeGen by changing the find_enum_string_index function to take a slice of pairs and return an enum value.

---
<!-- 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 #15587 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because _____

<!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15659)
<!-- Reviewable:end -->
2017-02-21 04:28:32 -08:00
..
parser Implement [Inline] interfaces 2016-10-06 20:59:08 +02:00
ply Cargoify servo 2014-09-08 20:21:42 -06:00
api.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
apis.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
BindingGen.py Remove unused command-line Python codegen arguments 2016-01-07 08:51:06 -05:00
Bindings.conf Implement matchMedia and MediaQueryList 2016-11-02 13:40:22 -06:00
CodegenRust.py Auto merge of #15659 - gregkatz:eliminate_transmute_find_enum, r=Ms2ger 2017-02-21 04:28:32 -08:00
Configuration.py Remove unused Descriptor.needsRooting field. 2017-02-08 12:40:19 +01:00
GlobalGen.py script codegen: Avoid modifying in-place a generated file. 2017-01-19 17:13:35 +01:00
interface.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
property.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
pythonpath.py Native MSVC windows build, convert to cmake 2016-08-17 09:50:51 -04:00