[meta] Move the doc() default values in the Operand/OperandKind;

This commit is contained in:
Benjamin Bouvier
2019-10-29 11:50:34 +01:00
parent 0b8a579943
commit 2bebc40c16
2 changed files with 28 additions and 26 deletions

View File

@@ -925,8 +925,7 @@ fn gen_inst_builder(inst: &Instruction, format: &InstructionFormat, fmt: &mut Fo
args_doc.push(format!(
"- {}: {}",
op.name,
op.doc
.as_ref()
op.doc()
.expect("every instruction's input operand must be documented")
));
}
@@ -935,8 +934,7 @@ fn gen_inst_builder(inst: &Instruction, format: &InstructionFormat, fmt: &mut Fo
rets_doc.push(format!(
"- {}: {}",
op.name,
op.doc
.as_ref()
op.doc()
.expect("every instruction's output operand must be documented")
));
}