]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/transform/simplify_comparison_integral.rs
Rollup merge of #82419 - petrochenkov:inertord, r=Aaron1011
[rust.git] / compiler / rustc_mir / src / transform / simplify_comparison_integral.rs
index ea56080c75216c96971ff01385e26fa4285c89a4..bd76e118fdf71650d42d4915d5ad726245109c66 100644 (file)
@@ -80,7 +80,7 @@ fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
                 // we convert the move in the comparison statement to a copy.
 
                 // unwrap is safe as we know this statement is an assign
-                let box (_, rhs) = bb.statements[opt.bin_op_stmt_idx].kind.as_assign_mut().unwrap();
+                let (_, rhs) = bb.statements[opt.bin_op_stmt_idx].kind.as_assign_mut().unwrap();
 
                 use Operand::*;
                 match rhs {