Sort the list of instruction formats by name
This makes opcodes.rs and inst_builders.rs deterministic.
This commit is contained in:
committed by
Benjamin Bouvier
parent
31cc184c34
commit
b342cbdd64
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user