style: Build mako-generated stylo rust sources deterministically.

Differential Revision: https://phabricator.services.mozilla.com/D70633
This commit is contained in:
Mike Hommey 2020-04-12 01:25:21 +00:00 committed by Emilio Cobos Álvarez
parent 3aa38ff4c5
commit 7ec0e56848
2 changed files with 3 additions and 3 deletions

View file

@ -737,7 +737,7 @@
aliases.append(alias) aliases.append(alias)
%> %>
% if aliases: % if aliases:
#[parse(aliases = "${','.join(aliases)}")] #[parse(aliases = "${','.join(sorted(aliases))}")]
% endif % endif
% endif % endif
${to_camel_case(variant)}, ${to_camel_case(variant)},

View file

@ -312,7 +312,7 @@ impl Clone for PropertyDeclaration {
trait AssertCopy { fn assert() {} } trait AssertCopy { fn assert() {} }
trait AssertNotCopy { fn assert() {} } trait AssertNotCopy { fn assert() {} }
impl<T: Copy> AssertCopy for Helper<T> {} impl<T: Copy> AssertCopy for Helper<T> {}
% for ty in set(x["type"] for x in others): % for ty in sorted(set(x["type"] for x in others)):
impl AssertNotCopy for Helper<${ty}> {} impl AssertNotCopy for Helper<${ty}> {}
Helper::<${ty}>::assert(); Helper::<${ty}>::assert();
% endfor % endfor
@ -789,7 +789,7 @@ static ${name}: LonghandIdSet = LonghandIdSet {
/// via logical resolution. /// via logical resolution.
#[derive(Clone, Copy, Eq, Hash, PartialEq)] #[derive(Clone, Copy, Eq, Hash, PartialEq)]
pub enum LogicalGroup { pub enum LogicalGroup {
% for group in logical_groups.keys(): % for group in sorted(logical_groups.keys()):
/// ${group} /// ${group}
${to_camel_case(group)}, ${to_camel_case(group)},
% endfor % endfor