Skip to content

Commit b63df38

Browse files
committed
Shrink the size of Rvalue by 16 bytes
1 parent 8b7d335 commit b63df38

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
@@ -494,14 +494,14 @@ fn codegen_stmt<'tcx>(
494494
let val = crate::constant::codegen_tls_ref(fx, def_id, lval.layout());
495495
lval.write_cvalue(fx, val);
496496
}
497-
Rvalue::BinaryOp(bin_op, ref lhs, ref rhs) => {
497+
Rvalue::BinaryOp(bin_op, box (ref lhs, ref rhs)) => {
498498
let lhs = codegen_operand(fx, lhs);
499499
let rhs = codegen_operand(fx, rhs);
500500

501501
let res = crate::num::codegen_binop(fx, bin_op, lhs, rhs);
502502
lval.write_cvalue(fx, res);
503503
}
504-
Rvalue::CheckedBinaryOp(bin_op, ref lhs, ref rhs) => {
504+
Rvalue::CheckedBinaryOp(bin_op, box (ref lhs, ref rhs)) => {
505505
let lhs = codegen_operand(fx, lhs);
506506
let rhs = codegen_operand(fx, rhs);
507507

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)