Skip to content

Commit 712ab41

Browse files
committed
---
yaml --- r: 7324 b: refs/heads/master c: d673f76 h: refs/heads/master v: v3
1 parent fd712f6 commit 712ab41

File tree

5 files changed

+11
-16
lines changed

5 files changed

+11
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 394a80cfd8eac555dc006f645496195207fb8879
2+
refs/heads/master: d673f76fdf39143f81f842471088d50a80f37dcb

trunk/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ rustc-stage3: rustc-stage3-H-$(CFG_HOST_TRIPLE)
397397
define DEF_RUSTC_TARGET
398398
# $(1) == architecture
399399

400-
rustc-H-$(1): rustc-stage2-H-$(1)
400+
rustc-H-$(1): rustc-stage3-H-$(1)
401401
endef
402402

403403
$(foreach host,$(CFG_TARGET_TRIPLES), \

trunk/mk/install.mk

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ else
1414
endif
1515

1616
# The stage we install from
17-
ISTAGE = 2
17+
ISTAGE = 3
1818

1919
PREFIX_ROOT = $(CFG_PREFIX)
2020
PREFIX_BIN = $(PREFIX_ROOT)/bin
@@ -56,7 +56,6 @@ install: all install-host install-targets
5656

5757
# Shorthand for build/stageN/bin
5858
HB = $(HBIN$(ISTAGE)_H_$(CFG_HOST_TRIPLE))
59-
HB3 = $(HBIN3_H_$(CFG_HOST_TRIPLE))
6059
# Shorthand for build/stageN/lib
6160
HL = $(HLIB$(ISTAGE)_H_$(CFG_HOST_TRIPLE))
6261
# Shorthand for the prefix bin directory
@@ -68,9 +67,9 @@ install-host: $(SREQ$(ISTAGE)_T_$(CFG_HOST_TRIPLE)_H_$(CFG_HOST_TRIPLE))
6867
$(Q)mkdir -p $(PREFIX_BIN)
6968
$(Q)mkdir -p $(PREFIX_LIB)
7069
$(Q)mkdir -p $(PREFIX_ROOT)/share/man/man1
71-
$(Q)$(call INSTALL,$(HB3),$(PHB),rustc$(X))
72-
$(Q)$(call INSTALL,$(HB3),$(PHB),cargo$(X))
73-
$(Q)$(call INSTALL,$(HB3),$(PHB),rustdoc$(X))
70+
$(Q)$(call INSTALL,$(HB),$(PHB),rustc$(X))
71+
$(Q)$(call INSTALL,$(HB),$(PHB),cargo$(X))
72+
$(Q)$(call INSTALL,$(HB),$(PHB),rustdoc$(X))
7473
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUNTIME))
7574
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(CORELIB_GLOB))
7675
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(STDLIB_GLOB))

trunk/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ endif
7070
# Main test targets
7171
######################################################################
7272

73-
check: all tidy check-stage2 \
73+
check: all tidy check-stage3 \
7474

7575
check-full: all tidy check-stage1 check-stage2 check-stage3 \
7676

trunk/src/comp/middle/trans.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4463,14 +4463,10 @@ fn trans_closure(cx: @local_ctxt, sp: span, decl: ast::fn_decl,
44634463
// translation calls that don't have a return value (trans_crate,
44644464
// trans_mod, trans_item, et cetera) and those that do
44654465
// (trans_block, trans_expr, et cetera).
4466-
if ty::type_is_bot(cx.ccx.tcx, block_ty) ||
4467-
ty::type_is_nil(cx.ccx.tcx, block_ty) ||
4468-
option::is_none(body.node.expr) {
4469-
bcx = trans_block_dps(bcx, body, ignore);
4470-
} else if ty::type_is_immediate(cx.ccx.tcx, block_ty) {
4471-
let cell = empty_dest_cell();
4472-
bcx = trans_block_dps(bcx, body, by_val(cell));
4473-
Store(bcx, *cell, fcx.llretptr);
4466+
if option::is_none(body.node.expr) ||
4467+
ty::type_is_bot(cx.ccx.tcx, block_ty) ||
4468+
ty::type_is_nil(cx.ccx.tcx, block_ty) {
4469+
bcx = trans_block(bcx, body);
44744470
} else {
44754471
bcx = trans_block_dps(bcx, body, save_in(fcx.llretptr));
44764472
}

0 commit comments

Comments
 (0)