Skip to content

Commit f69f540

Browse files
committed
---
yaml --- r: 271395 b: refs/heads/auto c: dd99f58 h: refs/heads/master i: 271393: 30dd50c 271391: bed8363
1 parent 0866560 commit f69f540

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 5508c40d0494fbb2f5e83a4bb37d86cb0c04c76e
11+
refs/heads/auto: dd99f58fe15134b42c6f74225107a08f267046f2
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/librustc_borrowck/borrowck/mir/gather_moves.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,11 @@ fn gather_moves<'tcx>(mir: &Mir<'tcx>, tcx: &ty::TyCtxt<'tcx>) -> MoveData<'tcx>
554554
Rvalue::Box(ref _ty) => {
555555
// this is creating uninitialized
556556
// memory that needs to be initialized.
557-
bb_ctxt.on_move_out_lval(SK::Box, lval, source);
557+
let deref_lval = Lvalue::Projection(Box::new( repr::Projection {
558+
base: lval.clone(),
559+
elem: repr::ProjectionElem::Deref,
560+
}));
561+
bb_ctxt.on_move_out_lval(SK::Box, &deref_lval, source);
558562
}
559563
Rvalue::Aggregate(ref _kind, ref operands) => {
560564
for operand in operands {

0 commit comments

Comments
 (0)