Skip to content

Commit 2a9d061

Browse files
committed
---
yaml --- r: 94125 b: refs/heads/try c: c06dd0e h: refs/heads/master i: 94123: 53cae15 v: v3
1 parent 5b592f5 commit 2a9d061

38 files changed

+649
-66
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: af6010ca0bfc0abf3f9e184cc33b9821c8453916
5+
refs/heads/try: c06dd0e0afb4b78ab4e482a7488adcf1c865bd19
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/Makefile.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,6 @@ TLIBRUSTUV_DEFAULT$(1)_T_$(2)_H_$(3) = \
431431
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2))
432432

433433
# Preqrequisites for using the stageN compiler
434-
ifeq ($(1),0)
435-
HSREQ$(1)_H_$(3) = $$(HBIN$(1)_H_$(3))/rustc$$(X_$(3))
436-
else
437434
HSREQ$(1)_H_$(3) = \
438435
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
439436
$$(HSTDLIB_DEFAULT$(1)_H_$(3)) \
@@ -442,7 +439,6 @@ HSREQ$(1)_H_$(3) = \
442439
$$(HLIBRUSTC_DEFAULT$(1)_H_$(3)) \
443440
$$(HLIBRUSTUV_DEFAULT$(1)_H_$(3)) \
444441
$$(MKFILE_DEPS)
445-
endif
446442

447443
# Prerequisites for using the stageN compiler to build target artifacts
448444
TSREQ$(1)_T_$(2)_H_$(3) = \

branches/try/mk/stage0.mk

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,34 @@ endif
2525
endif
2626
$(Q)touch $@
2727

28+
# Host libs will be extracted by the above rule
29+
30+
# NOTE: remove all these after the next snapshot
31+
$(HLIB0_H_$(CFG_BUILD))/$(CFG_STDLIB_$(CFG_BUILD)): \
32+
$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD)) \
33+
| $(HLIB0_H_$(CFG_BUILD))/
34+
$(Q)touch $@
35+
36+
$(HLIB0_H_$(CFG_BUILD))/$(CFG_EXTRALIB_$(CFG_BUILD)): \
37+
$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD)) \
38+
| $(HLIB0_H_$(CFG_BUILD))/
39+
$(Q)touch $@
40+
41+
$(HLIB0_H_$(CFG_BUILD))/$(CFG_LIBRUSTUV_$(CFG_BUILD)): \
42+
$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD)) \
43+
| $(HLIB0_H_$(CFG_BUILD))/
44+
$(Q)touch $@
45+
46+
$(HLIB0_H_$(CFG_BUILD))/$(CFG_LIBRUSTC_$(CFG_BUILD)): \
47+
$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD)) \
48+
| $(HLIB0_H_$(CFG_BUILD))/
49+
$(Q)touch $@
50+
51+
$(HLIB0_H_$(CFG_BUILD))/$(CFG_RUSTLLVM_$(CFG_BUILD)): \
52+
$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD)) \
53+
| $(HLIB0_H_$(CFG_BUILD))/
54+
$(Q)touch $@
55+
2856
# For other targets, let the host build the target:
2957

3058
define BOOTSTRAP_STAGE0
@@ -44,6 +72,45 @@ $$(HBIN0_H_$(1))/rustc$$(X_$(1)): \
4472
@$$(call E, cp: $$@)
4573
$$(Q)cp $$< $$@
4674

75+
# NOTE: removing everything below after the next snapshot
76+
$$(HLIB0_H_$(1))/$(CFG_STDLIB_$(1)): \
77+
$$(TLIB$(2)_T_$(1)_H_$(3))/$(CFG_STDLIB_$(1)) \
78+
| $(HLIB0_H_$(1))/
79+
@$$(call E, cp: $$@)
80+
$$(call CHECK_FOR_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(STDLIB_GLOB_$(4)),$$(notdir $$@))
81+
$$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$(STDLIB_GLOB_$(1)) $$@
82+
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(STDLIB_GLOB_$(4)),$$(notdir $$@))
83+
84+
$$(HLIB0_H_$(1))/$(CFG_EXTRALIB_$(1)): \
85+
$$(TLIB$(2)_T_$(1)_H_$(3))/$(CFG_EXTRALIB_$(1)) \
86+
| $(HLIB0_H_$(1))/
87+
@$$(call E, cp: $$@)
88+
$$(call CHECK_FOR_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(EXTRALIB_GLOB_$(4)),$$(notdir $$@))
89+
$$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$(EXTRALIB_GLOB_$(1)) $$@
90+
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(EXTRALIB_GLOB_$(4)),$$(notdir $$@))
91+
92+
$$(HLIB0_H_$(1))/$(CFG_LIBRUSTUV_$(1)): \
93+
$$(TLIB$(2)_T_$(1)_H_$(3))/$(CFG_LIBRUSTUV_$(1)) \
94+
| $(HLIB0_H_$(1))/
95+
@$$(call E, cp: $$@)
96+
$$(call CHECK_FOR_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTUV_GLOB_$(4)),$$(notdir $$@))
97+
$$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$(LIBRUSTUV_GLOB_$(1)) $$@
98+
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTUV_GLOB_$(4)),$$(notdir $$@))
99+
100+
$$(HLIB0_H_$(1))/$(CFG_LIBRUSTC_$(1)): \
101+
$$(TLIB$(2)_T_$(1)_H_$(3))/$(CFG_LIBRUSTC_$(1)) \
102+
| $(HLIB0_H_$(1))/
103+
@$$(call E, cp: $$@)
104+
$$(call CHECK_FOR_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_GLOB_$(4)),$$(notdir $$@))
105+
$$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$(LIBRUSTC_GLOB_$(1)) $$@
106+
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_GLOB_$(4)),$$(notdir $$@))
107+
108+
$$(HLIB0_H_$(1))/$(CFG_RUSTLLVM_$(1)): \
109+
$$(TLIB$(2)_T_$(1)_H_$(3))/$(CFG_RUSTLLVM_$(1)) \
110+
| $(HLIB0_H_$(1))/
111+
@$$(call E, cp: $$@)
112+
$$(Q)cp $$< $$@
113+
47114
endef
48115

49116
# Use stage1 to build other architectures: then you don't have to wait

branches/try/src/etc/extract-tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
#[ allow(dead_assignment) ];\n
6565
#[ allow(unused_mut) ];\n
6666
#[ allow(attribute_usage) ];\n
67+
#[ allow(dead_code) ];\n
6768
#[ feature(macro_rules, globs, struct_variant, managed_boxes) ];\n
6869
""" + block
6970
if xfail:

branches/try/src/librustc/driver/driver.rs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ pub fn phase_3_run_analysis_passes(sess: Session,
310310
time(time_passes, "reachability checking", (), |_|
311311
reachable::find_reachable(ty_cx, method_map, &exported_items));
312312

313+
time(time_passes, "death checking", (), |_|
314+
middle::dead::check_crate(ty_cx, method_map,
315+
&exported_items, reachable_map, crate));
316+
313317
time(time_passes, "lint checking", (), |_|
314318
lint::check_crate(ty_cx, &exported_items, crate));
315319

@@ -510,19 +514,6 @@ pub fn pretty_print_input(sess: Session,
510514
cfg: ast::CrateConfig,
511515
input: &input,
512516
ppm: PpMode) {
513-
fn ann_typed_post(tcx: ty::ctxt, node: pprust::ann_node) {
514-
match node {
515-
pprust::node_expr(s, expr) => {
516-
pp::space(s.s);
517-
pp::word(s.s, "as");
518-
pp::space(s.s);
519-
pp::word(s.s, ppaux::ty_to_str(tcx, ty::expr_ty(tcx, expr)));
520-
pprust::pclose(s);
521-
}
522-
_ => ()
523-
}
524-
}
525-
526517
let crate = phase_1_parse_input(sess, cfg.clone(), input);
527518

528519
let (crate, is_expanded) = match ppm {

branches/try/src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ pub mod middle {
7777
pub mod reachable;
7878
pub mod graph;
7979
pub mod cfg;
80+
pub mod dead;
8081
}
8182

8283
pub mod front {

0 commit comments

Comments
 (0)