diff options
| author | bors <bors@rust-lang.org> | 2021-03-08 08:39:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-08 08:39:24 +0000 |
| commit | 7f020206e8f57dbf31b4ef3f7066d49e1bd19fbb (patch) | |
| tree | ec9649b44e295724f9785727019515bd17ade8fe | |
| parent | 27886cd6b6a52d5bf3d0a9ea667e04c5e8c59705 (diff) | |
| parent | b63df38a98a1dac5a7d4bc54a28a6204923443a4 (diff) | |
| download | rust-7f020206e8f57dbf31b4ef3f7066d49e1bd19fbb.tar.gz rust-7f020206e8f57dbf31b4ef3f7066d49e1bd19fbb.zip | |
Auto merge of #82727 - oli-obk:shrinkmem, r=pnkfelix
Test the effect of shrinking the size of Rvalue by 16 bytes r? `@ghost`
| -rw-r--r-- | src/base.rs | 4 | ||||
| -rw-r--r-- | src/lib.rs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/base.rs b/src/base.rs index 0a7734d6a04..f2c61c95f4f 100644 --- a/src/base.rs +++ b/src/base.rs @@ -464,14 +464,14 @@ fn codegen_stmt<'tcx>( let val = crate::constant::codegen_tls_ref(fx, def_id, lval.layout()); lval.write_cvalue(fx, val); } - Rvalue::BinaryOp(bin_op, ref lhs, ref rhs) => { + Rvalue::BinaryOp(bin_op, box (ref lhs, ref rhs)) => { let lhs = codegen_operand(fx, lhs); let rhs = codegen_operand(fx, rhs); let res = crate::num::codegen_binop(fx, bin_op, lhs, rhs); lval.write_cvalue(fx, res); } - Rvalue::CheckedBinaryOp(bin_op, ref lhs, ref rhs) => { + Rvalue::CheckedBinaryOp(bin_op, box (ref lhs, ref rhs)) => { let lhs = codegen_operand(fx, lhs); let rhs = codegen_operand(fx, rhs); diff --git a/src/lib.rs b/src/lib.rs index e1927ad3a69..8edb883ccb5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,6 +5,7 @@ associated_type_bounds, never_type, try_blocks, + box_patterns, hash_drain_filter )] #![warn(rust_2018_idioms)] |
