[meta] Make Builders build() instead of finish();

This commit is contained in:
Benjamin Bouvier
2019-05-28 15:01:14 +02:00
parent d9277f249b
commit 70f79d23bf
19 changed files with 156 additions and 159 deletions

View File

@@ -135,7 +135,7 @@ impl InstructionFormatBuilder {
self
}
pub fn finish(self) -> InstructionFormat {
pub fn build(self) -> InstructionFormat {
let typevar_operand = if self.typevar_operand.is_some() {
self.typevar_operand
} else if self.has_value_list || self.num_value_operands > 0 {
@@ -213,7 +213,7 @@ impl FormatRegistry {
);
}
let format = inst_format.finish();
let format = inst_format.build();
// Compute key.
let imm_keys = format