Auto merge of #18498 - upsuper:enum-keyword-exhaustive, r=emilio

Use exhaustive match for cloning keyword value by default for property using enum class

rather than casting them to `u8` then do inexhaustive match.

I don't see why we couldn't do this.

<!-- 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/18498)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-09-14 06:28:16 -05:00 committed by GitHub
commit 9dd0513647
9 changed files with 11 additions and 21 deletions

View file

@ -1793,7 +1793,6 @@ ${helpers.single_keyword("-moz-orient",
gecko_ffi_name="mOrient",
gecko_enum_prefix="StyleOrient",
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-orient)",
gecko_inexhaustive="True",
animation_value_type="discrete")}
<%helpers:longhand name="will-change" products="gecko" animation_value_type="discrete"