@@ -152,7 +152,7 @@ fn compute_function_postorder(
152
152
}
153
153
154
154
states[ current] = NodeState :: Finished ;
155
- postorder. push ( current)
155
+ postorder. push ( current) ;
156
156
}
157
157
158
158
fn calls < ' a > (
@@ -247,7 +247,7 @@ fn should_inline(
247
247
// This should be more general, but a very common problem is passing an OpAccessChain to an
248
248
// OpFunctionCall (i.e. `f(&s.x)`, or more commonly, `s.x.f()` where `f` takes `&self`), so detect
249
249
// that case and inline the call.
250
- fn get_invalid_args < ' a > ( function : & ' a Function ) -> impl Iterator < Item = Word > + ' a {
250
+ fn get_invalid_args ( function : & Function ) -> impl Iterator < Item = Word > + ' _ {
251
251
function. all_inst_iter ( ) . filter_map ( |inst| {
252
252
if inst. class . opcode == Op :: AccessChain {
253
253
inst. result_id
@@ -292,14 +292,14 @@ impl Inliner<'_, '_> {
292
292
// If we successfully inlined a block, then continue processing on the next block or its tail.
293
293
// TODO: this is quadratic in cases where [`Op::AccessChain`]s cascade into inner arguments.
294
294
// For the common case of "we knew which functions to inline", it is linear.
295
- self . inline_block ( & mut function, & functions, block_idx) ;
295
+ self . inline_block ( & mut function, functions, block_idx) ;
296
296
block_idx += 1 ;
297
297
}
298
298
functions[ index] = function;
299
299
}
300
300
301
301
/// Inlines one block and returns whether inlining actually occurred.
302
- /// After calling this, blocks[block_idx] is finished processing.
302
+ /// After calling this, ` blocks[block_idx]` is finished processing.
303
303
fn inline_block (
304
304
& mut self ,
305
305
caller : & mut Function ,
@@ -456,7 +456,7 @@ fn get_inlined_blocks(function: &Function, return_jump: Word) -> (Vec<Block>, Ve
456
456
if let Op :: Return | Op :: ReturnValue = last. class . opcode {
457
457
if Op :: ReturnValue == last. class . opcode {
458
458
let return_value = last. operands [ 0 ] . id_ref_any ( ) . unwrap ( ) ;
459
- phipairs. push ( ( return_value, block. label_id ( ) . unwrap ( ) ) )
459
+ phipairs. push ( ( return_value, block. label_id ( ) . unwrap ( ) ) ) ;
460
460
}
461
461
* block. instructions . last_mut ( ) . unwrap ( ) =
462
462
Instruction :: new ( Op :: Branch , None , None , vec ! [ Operand :: IdRef ( return_jump) ] ) ;
0 commit comments