Skip to content

Commit 0b00c1a

Browse files
committed
---
yaml --- r: 36155 b: refs/heads/try2 c: bf792b9 h: refs/heads/master i: 36153: b0d370f 36151: 68f43cc v: v3
1 parent ead93da commit 0b00c1a

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 17a5d0f3a0a76e172777456cc0f5ed8318149e33
8+
refs/heads/try2: bf792b922cb14ed7825246f169d60874f71aec78
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/mk/tests.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,22 @@ cleantestlibs:
9393
| xargs rm -rf
9494

9595
check: cleantestlibs cleantmptestlogs tidy all check-stage2
96-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
96+
$(Q)$(S)src/etc/check-summary.py tmp/*.log
9797

9898
check-notidy: cleantestlibs cleantmptestlogs all check-stage2
99-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
99+
$(Q)$(S)src/etc/check-summary.py tmp/*.log
100100

101101
check-full: cleantestlibs cleantmptestlogs tidy \
102102
all check-stage1 check-stage2 check-stage3
103-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
103+
$(Q)$(S)src/etc/check-summary.py tmp/*.log
104104

105105
check-test: cleantestlibs cleantmptestlogs all check-stage2-rfail
106-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
106+
$(Q)$(S)src/etc/check-summary.py tmp/*.log
107107

108108
check-lite: cleantestlibs cleantmptestlogs rustc-stage2 \
109109
check-stage2-core check-stage2-std check-stage2-rpass \
110110
check-stage2-rfail check-stage2-cfail
111-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
111+
$(Q)$(S)src/etc/check-summary.py tmp/*.log
112112

113113
# Run the tidy script in multiple parts to avoid huge 'echo' commands
114114
ifdef CFG_NOTIDY

branches/try2/src/rustc/middle/trans/datum.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,25 @@ impl Datum {
542542
};
543543
}
544544

545+
fn dropnzero_val(bcx: block) -> block {
546+
if !ty::type_needs_drop(bcx.tcx(), self.ty) {
547+
return bcx;
548+
}
549+
550+
return match self.mode {
551+
ByRef => {
552+
glue::drop_ty(bcx, self.val, self.ty);
553+
zero_mem(bcx, self.val, self.ty);
554+
return bcx;
555+
}
556+
ByValue => {
557+
glue::drop_ty_immediate(bcx, self.val, self.ty);
558+
zero_mem(bcx, self.val, self.ty);
559+
return bcx;
560+
}
561+
};
562+
}
563+
545564
fn box_body(bcx: block) -> Datum {
546565
/*!
547566
*

branches/try2/src/rustc/middle/trans/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ fn trans_rvalue_dps_unadjusted(bcx: block, expr: @ast::expr,
573573
if bcx.expr_is_lval(a) {
574574
let datum = unpack_datum!(bcx, trans_to_datum(bcx, a));
575575
return match dest {
576-
Ignore => datum.drop_val(bcx),
576+
Ignore => datum.dropnzero_val(bcx),
577577
SaveIn(addr) => datum.move_to(bcx, INIT, addr)
578578
};
579579
} else {

0 commit comments

Comments
 (0)