Sort the list of instruction formats by name

This makes opcodes.rs and inst_builders.rs deterministic.
This commit is contained in:
Mike Hommey
2019-12-04 16:23:43 +09:00
committed by Benjamin Bouvier
parent 31cc184c34
commit b342cbdd64

View File

@@ -92,6 +92,8 @@ impl Definitions {
}
}
Vec::from_iter(format_structures.into_iter().map(|(_, v)| v))
let mut result = Vec::from_iter(format_structures.into_iter().map(|(_, v)| v));
result.sort_by_key(|format| format.name);
result
}
}