X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_mir%2Fsrc%2Fborrow_check%2Fmod.rs;h=dcf3093baaf4165f586ff2589542f7a1aa85c4ad;hb=9a2362e5a96d2469d65a64d7b0b422b48fc2b4ee;hp=375d464917118b10786e2c2b3460e6f42bff51fd;hpb=3158857297417566824631a85c4cb3c0615ec6c2;p=rust.git diff --git a/compiler/rustc_mir/src/borrow_check/mod.rs b/compiler/rustc_mir/src/borrow_check/mod.rs index 375d4649171..dcf3093baaf 100644 --- a/compiler/rustc_mir/src/borrow_check/mod.rs +++ b/compiler/rustc_mir/src/borrow_check/mod.rs @@ -1316,8 +1316,8 @@ fn consume_rvalue( ); } - Rvalue::BinaryOp(_bin_op, ref operand1, ref operand2) - | Rvalue::CheckedBinaryOp(_bin_op, ref operand1, ref operand2) => { + Rvalue::BinaryOp(_bin_op, box (ref operand1, ref operand2)) + | Rvalue::CheckedBinaryOp(_bin_op, box (ref operand1, ref operand2)) => { self.consume_operand(location, (operand1, span), flow_state); self.consume_operand(location, (operand2, span), flow_state); }