Skip to content

Commit 00bbea2

Browse files
committed
---
yaml --- r: 94142 b: refs/heads/try c: a417dbd h: refs/heads/master v: v3
1 parent e661285 commit 00bbea2

File tree

132 files changed

+1499
-1550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1499
-1550
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: 705b705ba5182745e12652dc7eeeb10828f520d0
5+
refs/heads/try: a417dbd1c71c168fe7db71efb98d22b5e22dcce1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/Makefile.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ 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
434437
HSREQ$(1)_H_$(3) = \
435438
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
436439
$$(HSTDLIB_DEFAULT$(1)_H_$(3)) \
@@ -439,6 +442,7 @@ HSREQ$(1)_H_$(3) = \
439442
$$(HLIBRUSTC_DEFAULT$(1)_H_$(3)) \
440443
$$(HLIBRUSTUV_DEFAULT$(1)_H_$(3)) \
441444
$$(MKFILE_DEPS)
445+
endif
442446

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

branches/try/mk/stage0.mk

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,6 @@ 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-
5628
# For other targets, let the host build the target:
5729

5830
define BOOTSTRAP_STAGE0
@@ -72,45 +44,6 @@ $$(HBIN0_H_$(1))/rustc$$(X_$(1)): \
7244
@$$(call E, cp: $$@)
7345
$$(Q)cp $$< $$@
7446

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-
11447
endef
11548

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

branches/try/mk/target.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(3)): \
130130
$$(call REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_GLOB_$(2)),$$(notdir $$@))
131131
$$(call REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_RGLOB_$(2)),$$(notdir $$@))
132132
$$(STAGE$(1)_T_$(2)_H_$(3)) $$(WFLAGS_ST$(1)) \
133-
-L "$$(LLVM_LIBDIR_$(3))" \
133+
-L "$$(LLVM_LIBDIR_$(2))" \
134134
--out-dir $$(@D) $$< && touch $$@
135135
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_GLOB_$(2)),$$(notdir $$@))
136136
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_RGLOB_$(2)),$$(notdir $$@))

branches/try/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ $(3)/stage$(1)/test/rustctest-$(2)$$(X_$(2)): \
377377
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBSYNTAX_$(2))
378378
@$$(call E, compile_and_link: $$@)
379379
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$< --test \
380-
-L "$$(LLVM_LIBDIR_$(3))"
380+
-L "$$(LLVM_LIBDIR_$(2))"
381381

382382
$(3)/stage$(1)/test/rustpkgtest-$(2)$$(X_$(2)): \
383383
$$(RUSTPKG_LIB) $$(RUSTPKG_INPUTS) \

branches/try/src/compiletest/compiletest.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,6 @@ pub fn opt_str2(maybestr: Option<~str>) -> ~str {
192192
match maybestr { None => ~"(none)", Some(s) => { s } }
193193
}
194194

195-
pub fn str_opt(maybestr: ~str) -> Option<~str> {
196-
if maybestr != ~"(none)" { Some(maybestr) } else { None }
197-
}
198-
199195
pub fn str_mode(s: ~str) -> mode {
200196
match s {
201197
~"compile-fail" => mode_compile_fail,

branches/try/src/compiletest/runtest.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use header::TestProps;
1818
use header::load_props;
1919
use procsrv;
2020
use util::logv;
21+
#[cfg(target_os = "win32")]
2122
use util;
2223

2324
use std::io::File;
@@ -482,6 +483,7 @@ fn check_expected_errors(expected_errors: ~[errors::ExpectedError],
482483
format!("{}:{}:", testfile.display(), ee.line)
483484
}).collect::<~[~str]>();
484485

486+
#[cfg(target_os = "win32")]
485487
fn to_lower( s : &str ) -> ~str {
486488
let i = s.chars();
487489
let c : ~[char] = i.map( |c| {
@@ -822,6 +824,7 @@ fn make_cmdline(libpath: &str, prog: &str, args: &[~str]) -> ~str {
822824

823825
// Build the LD_LIBRARY_PATH variable as it would be seen on the command line
824826
// for diagnostic purposes
827+
#[cfg(target_os = "win32")]
825828
fn lib_path_cmd_prefix(path: &str) -> ~str {
826829
format!("{}=\"{}\"", util::lib_path_env_var(), util::make_new_path(path))
827830
}

branches/try/src/compiletest/util.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use common::config;
1212

13+
#[cfg(target_os = "win32")]
1314
use std::os::getenv;
1415

1516
/// Conversion table from triple OS name to Rust SYSNAME
@@ -31,6 +32,7 @@ pub fn get_os(triple: &str) -> &'static str {
3132
fail!("Cannot determine OS from triple");
3233
}
3334

35+
#[cfg(target_os = "win32")]
3436
pub fn make_new_path(path: &str) -> ~str {
3537

3638
// Windows just uses PATH as the library search path, so we have to
@@ -43,21 +45,9 @@ pub fn make_new_path(path: &str) -> ~str {
4345
}
4446
}
4547

46-
#[cfg(target_os = "linux")]
47-
#[cfg(target_os = "freebsd")]
48-
pub fn lib_path_env_var() -> ~str { ~"LD_LIBRARY_PATH" }
49-
50-
#[cfg(target_os = "macos")]
51-
pub fn lib_path_env_var() -> ~str { ~"DYLD_LIBRARY_PATH" }
52-
5348
#[cfg(target_os = "win32")]
5449
pub fn lib_path_env_var() -> ~str { ~"PATH" }
5550

56-
#[cfg(target_os = "linux")]
57-
#[cfg(target_os = "macos")]
58-
#[cfg(target_os = "freebsd")]
59-
pub fn path_div() -> ~str { ~":" }
60-
6151
#[cfg(target_os = "win32")]
6252
pub fn path_div() -> ~str { ~";" }
6353

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/libextra/bitv.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,9 @@ impl Bitv {
382382
#[inline]
383383
pub fn negate(&mut self) {
384384
match self.rep {
385-
Small(ref mut b) => b.negate(),
386-
Big(ref mut s) => {
387-
s.each_storage(|w| { *w = !*w; true });
388-
}
389-
}
385+
Small(ref mut s) => s.negate(),
386+
Big(ref mut b) => b.negate(),
387+
}
390388
}
391389

392390
/**

0 commit comments

Comments
 (0)