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