[meta] Generate full documentation for instructions in InstBuilder;

This commit is contained in:
Benjamin Bouvier
2019-07-10 12:01:37 +02:00
parent 84a6795873
commit d5b80b2803
2 changed files with 2 additions and 12 deletions

View File

@@ -930,7 +930,7 @@ fn gen_inst_builder(inst: &Instruction, format: &InstructionFormat, fmt: &mut Fo
rtype
);
fmt.doc_comment(format!("`{}`\n\n{}", inst, inst.doc_comment_first_line()));
fmt.doc_comment(&inst.doc);
fmt.line("#[allow(non_snake_case)]");
fmtln!(fmt, "fn {} {{", proto);
fmt.indent(|fmt| {