Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6ef48e9

Browse files
committed
Sync from rust 4b9f5cc
2 parents 341a486 + 7f02020 commit 6ef48e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,14 +465,14 @@ fn codegen_stmt<'tcx>(
465465
let val = crate::constant::codegen_tls_ref(fx, def_id, lval.layout());
466466
lval.write_cvalue(fx, val);
467467
}
468-
Rvalue::BinaryOp(bin_op, ref lhs, ref rhs) => {
468+
Rvalue::BinaryOp(bin_op, box (ref lhs, ref rhs)) => {
469469
let lhs = codegen_operand(fx, lhs);
470470
let rhs = codegen_operand(fx, rhs);
471471

472472
let res = crate::num::codegen_binop(fx, bin_op, lhs, rhs);
473473
lval.write_cvalue(fx, res);
474474
}
475-
Rvalue::CheckedBinaryOp(bin_op, ref lhs, ref rhs) => {
475+
Rvalue::CheckedBinaryOp(bin_op, box (ref lhs, ref rhs)) => {
476476
let lhs = codegen_operand(fx, lhs);
477477
let rhs = codegen_operand(fx, rhs);
478478

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
associated_type_bounds,
66
never_type,
77
try_blocks,
8+
box_patterns,
89
hash_drain_filter
910
)]
1011
#![warn(rust_2018_idioms)]

0 commit comments

Comments
 (0)