From e217b04347c70dd2c3f8afc83341b81abce6f408 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Fri, 10 Mar 2017 08:25:02 -0800 Subject: [PATCH] Clean up lifetimes a bit. No functional change. --- lib/cretonne/meta/gen_instr.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cretonne/meta/gen_instr.py b/lib/cretonne/meta/gen_instr.py index f5d5d07b74..23f28efeb7 100644 --- a/lib/cretonne/meta/gen_instr.py +++ b/lib/cretonne/meta/gen_instr.py @@ -117,9 +117,9 @@ def gen_instruction_data_impl(fmt): - `pub fn opcode(&self) -> Opcode` - `pub fn first_type(&self) -> Type` - `pub fn second_result(&self) -> Option` - - `pub fn second_result_mut<'a>(&'a mut self) - -> Option<&'a mut PackedOption>` - - `pub fn arguments(&self) -> (&[Value], &[Value])` + - `pub fn second_result_mut(&mut self) -> Option<&mut PackedOption>` + - `pub fn arguments(&self, &pool) -> &[Value]` + - `pub fn arguments_mut(&mut self, &pool) -> &mut [Value]` """ # The `opcode` and `first_type` methods simply read the `opcode` and `ty` @@ -172,8 +172,8 @@ def gen_instruction_data_impl(fmt): fmt.doc_comment('Mutable reference to second result value, if any.') with fmt.indented( - "pub fn second_result_mut<'a>(&'a mut self)" + - " -> Option<&'a mut PackedOption> {", '}'): + "pub fn second_result_mut(&mut self)" + + " -> Option<&mut PackedOption> {", '}'): with fmt.indented('match *self {', '}'): for f in InstructionFormat.all_formats: if f.multiple_results: