style: Don't generate catch-all branch if a image layer keyword value is exhaustive.

Bug: 1463978
Reviewed-by: emilio
MozReview-Commit-ID: H8T9Low6kqY
This commit is contained in:
Xidorn Quan 2018-05-24 14:12:55 +10:00 committed by Emilio Cobos Álvarez
parent 6306cc7e2d
commit 8f367be650
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 48 additions and 33 deletions

View file

@ -3805,7 +3805,9 @@ fn static_assert() {
% endif
=> Keyword::${to_camel_case(value)},
% endfor
% if keyword.gecko_inexhaustive:
_ => panic!("Found unexpected value in style struct for ${ident} property"),
% endif
}
}).collect()
)