Skip to content

Commit aeb6e88

Browse files
committed
---
yaml --- r: 162551 b: refs/heads/try c: 2f0249b h: refs/heads/master i: 162549: cb30096 162547: 5e2a5c4 162543: 6f65610 v: v3
1 parent 7f0c9ff commit aeb6e88

File tree

441 files changed

+15142
-10491
lines changed

Some content is hidden

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

441 files changed

+15142
-10491
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: 9146a919b616e39e528e4d7100d16eef52f1f852
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cafe2966770ff377aad6dd9fd808e68055587c58
5-
refs/heads/try: e9fcfe6a914a0de82bf5e1e8e2b0186569566f37
5+
refs/heads/try: 2f0249b3a86247c7c1e52f17ccdc46346738d1e1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/AUTHORS.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ Cole Mickens <[email protected]>
121121
Colin Davidson <[email protected]>
122122
Colin Sherratt <[email protected]>
123123
Conrad Kleinespel <[email protected]>
124-
Corey Farwell <[email protected]>
125124
Corey Ford <[email protected]>
126125
Corey Richardson <[email protected]>
127126

branches/try/configure

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -550,20 +550,10 @@ CFG_LIBDIR_RELATIVE=lib
550550
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
551551
then
552552
CFG_LIBDIR_RELATIVE=bin
553-
CFG_LIBDIR="${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}"
554-
else
555-
valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries (ignored on windows platform)"
556-
557-
case "$CFG_LIBDIR" in
558-
"$CFG_PREFIX"/*) CAT_INC=2;;
559-
"$CFG_PREFIX"*) CAT_INC=1;;
560-
*)
561-
err "libdir must begin with the prefix. Use --prefix to set it accordingly.";;
562-
esac
563-
564-
CFG_LIBDIR_RELATIVE=`echo ${CFG_LIBDIR} | cut -c$((${#CFG_PREFIX}+${CAT_INC}))-`
565553
fi
566554

555+
valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries"
556+
567557
if [ $HELP -eq 1 ]
568558
then
569559
echo
@@ -711,6 +701,11 @@ then
711701
fi
712702
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: $LRV"
713703
putvar CFG_LOCAL_RUST_ROOT
704+
else
705+
if [ ! -z "$CFG_LOCAL_RUST_ROOT" ]
706+
then
707+
warn "Use of --local-rust-root without --enable-local-rust"
708+
fi
714709
fi
715710

716711
# Force freebsd to build with clang; gcc doesn't like us there
@@ -888,10 +883,7 @@ CFG_PREFIX=${CFG_PREFIX%/}
888883
CFG_MANDIR=${CFG_MANDIR%/}
889884
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
890885
CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
891-
CFG_SUPPORTED_TARGET=""
892-
for target_file in ${CFG_SRC_DIR}mk/cfg/*.mk; do
893-
CFG_SUPPORTED_TARGET="${CFG_SUPPORTED_TARGET} $(basename "$target_file" .mk)"
894-
done
886+
CFG_SUPPORTED_TARGET="$(ls ${CFG_SRC_DIR}mk/cfg)"
895887

896888
# copy host-triples to target-triples so that hosts are a subset of targets
897889
V_TEMP=""
@@ -997,15 +989,6 @@ for h in $CFG_HOST
997989
do
998990
for t in $CFG_TARGET
999991
do
1000-
# host lib dir stage0
1001-
make_dir $h/stage0/lib
1002-
1003-
# target bin dir stage0
1004-
make_dir $h/stage0/lib/rustlib/$t/bin
1005-
1006-
# target lib dir stage0
1007-
make_dir $h/stage0/lib/rustlib/$t/lib
1008-
1009992
for i in 0 1 2 3
1010993
do
1011994
# host bin dir
@@ -1048,7 +1031,6 @@ do
10481031
make_dir $h/test/doc-guide-tasks
10491032
make_dir $h/test/doc-guide-plugin
10501033
make_dir $h/test/doc-guide-crates
1051-
make_dir $h/test/doc-guide-error-handling
10521034
make_dir $h/test/doc-rust
10531035
done
10541036

branches/try/mk/crates.mk

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#
3838
# DEPS_<crate>
3939
# These lists are the dependencies of the <crate> that is to be built.
40-
# Rust dependencies are listed bare (i.e. std) and native
40+
# Rust dependencies are listed bare (i.e. std, green) and native
4141
# dependencies have a "native:" prefix (i.e. native:hoedown). All deps
4242
# will be built before the crate itself is built.
4343
#
@@ -49,7 +49,7 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := libc std flate arena term \
52+
TARGET_CRATES := libc std green native flate arena term \
5353
serialize sync getopts collections test time rand \
5454
log regex graphviz core rbml alloc rustrt \
5555
unicode
@@ -66,6 +66,8 @@ DEPS_rustrt := alloc core libc collections native:rustrt_native
6666
DEPS_std := core libc rand alloc collections rustrt sync unicode \
6767
native:rust_builtin native:backtrace
6868
DEPS_graphviz := std
69+
DEPS_green := std native:context_switch
70+
DEPS_native := std
6971
DEPS_syntax := std term serialize log fmt_macros arena libc
7072
DEPS_rustc_trans := rustc rustc_back rustc_llvm libc
7173
DEPS_rustc := syntax flate arena serialize getopts rbml \
@@ -93,9 +95,9 @@ DEPS_regex := std
9395
DEPS_regex_macros = rustc syntax std regex
9496
DEPS_fmt_macros = std
9597

96-
TOOL_DEPS_compiletest := test getopts
97-
TOOL_DEPS_rustdoc := rustdoc
98-
TOOL_DEPS_rustc := rustc_trans
98+
TOOL_DEPS_compiletest := test getopts native
99+
TOOL_DEPS_rustdoc := rustdoc native
100+
TOOL_DEPS_rustc := rustc_trans native
99101
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
100102
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
101103
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs

branches/try/mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
######################################################################
2828
DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
2929
guide-tasks guide-container guide-pointers guide-testing \
30-
guide-plugin guide-crates complement-bugreport guide-error-handling \
30+
guide-plugin guide-crates complement-bugreport \
3131
complement-lang-faq complement-design-faq complement-project-faq \
3232
rustdoc guide-unsafe guide-strings reference
3333

branches/try/mk/grammar.mk

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,17 @@ endef
3030
$(BG):
3131
$(Q)mkdir -p $(BG)
3232

33-
$(BG)RustLexer.class: $(BG) $(SG)RustLexer.g4
33+
$(BG)RustLexer.class: $(SG)RustLexer.g4
3434
$(Q)$(CFG_ANTLR4) -o $(B)grammar $(SG)RustLexer.g4
3535
$(Q)$(CFG_JAVAC) -d $(BG) $(BG)RustLexer.java
3636

37-
check-build-lexer-verifier: $(BG)verify
38-
39-
ifeq ($(NO_REBUILD),)
40-
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.regex_macros $(LD)stamp.rustc
41-
else
42-
VERIFY_DEPS :=
43-
endif
44-
45-
$(BG)verify: $(BG) $(SG)verify.rs $(VERIFY_DEPS)
46-
$(Q)$(RUSTC) --out-dir $(BG) -L $(L) $(SG)verify.rs
37+
$(BG)verify: $(SG)verify.rs rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.regex_macros $(LD)stamp.rustc
38+
$(Q)$(RUSTC) -O --out-dir $(BG) -L $(L) $(SG)verify.rs
4739

4840
ifdef CFG_JAVAC
4941
ifdef CFG_ANTLR4
5042
ifdef CFG_GRUN
51-
check-lexer: $(BG) $(BG)RustLexer.class check-build-lexer-verifier
43+
check-lexer: $(BG) $(BG)RustLexer.class $(BG)verify
5244
$(info Verifying libsyntax against the reference lexer ...)
5345
$(Q)$(SG)check.sh $(S) "$(BG)" \
5446
"$(CFG_GRUN)" "$(BG)verify" "$(BG)RustLexer.tokens"

branches/try/mk/main.mk

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,11 @@ endif
190190
# Target-and-rule "utility variables"
191191
######################################################################
192192

193-
define DEF_FOR_TARGET
193+
define DEF_X
194194
X_$(1) := $(CFG_EXE_SUFFIX_$(1))
195-
ifndef CFG_LLVM_TARGET_$(1)
196-
CFG_LLVM_TARGET_$(1) := $(1)
197-
endif
198195
endef
199196
$(foreach target,$(CFG_TARGET), \
200-
$(eval $(call DEF_FOR_TARGET,$(target))))
197+
$(eval $(call DEF_X,$(target))))
201198

202199
# "Source" files we generate in builddir along the way.
203200
GENERATED :=
@@ -335,15 +332,7 @@ define SREQ
335332
# Destinations of artifacts for the host compiler
336333
HROOT$(1)_H_$(3) = $(3)/stage$(1)
337334
HBIN$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/bin
338-
ifeq ($$(CFG_WINDOWSY_$(3)),1)
339-
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR_RELATIVE)
340-
else
341-
ifeq ($(1),0)
342-
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/lib
343-
else
344335
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR_RELATIVE)
345-
endif
346-
endif
347336

348337
# Destinations of artifacts for target architectures
349338
TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/rustlib/$(2)

branches/try/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ $(foreach cvar,CC CXX CPP CFLAGS CXXFLAGS CPPFLAGS, \
113113

114114
CFG_RLIB_GLOB=lib$(1)-*.rlib
115115

116-
include $(wildcard $(CFG_SRC_DIR)mk/cfg/*.mk)
116+
include $(wildcard $(CFG_SRC_DIR)mk/cfg/*)
117117

118118
# The -Qunused-arguments sidesteps spurious warnings from clang
119119
define FILTER_FLAGS

branches/try/mk/rt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.ll $$(MKFILE_DEPS) \
7575
@mkdir -p $$(@D)
7676
@$$(call E, compile: $$@)
7777
$$(Q)$$(LLC_$$(CFG_BUILD)) $$(CFG_LLC_FLAGS_$(1)) \
78-
-filetype=obj -mtriple=$$(CFG_LLVM_TARGET_$(1)) -relocation-model=pic -o $$@ $$<
78+
-filetype=obj -mtriple=$(1) -relocation-model=pic -o $$@ $$<
7979

8080
$$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.c $$(MKFILE_DEPS)
8181
@mkdir -p $$(@D)

branches/try/mk/stage0.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ifdef CFG_ENABLE_LOCAL_RUST
2222
else
2323
$(Q)$(CFG_PYTHON) $(S)src/etc/get-snapshot.py $(CFG_BUILD) $(SNAPSHOT_FILE)
2424
endif
25-
$(Q)if [ -e "$@" ]; then touch "$@"; else echo "ERROR: snapshot $@ not found"; exit 1; fi
25+
$(Q)touch $@
2626

2727
# For other targets, let the host build the target:
2828

branches/try/mk/target.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ $$(TBIN$(1)_T_$(2)_H_$(3))/$(4)$$(X_$(2)): \
116116
$$(foreach dep,$$(TOOL_DEPS_$(4)), \
117117
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(dep)) \
118118
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
119-
| $$(TBIN$(1)_T_$(2)_H_$(3))/
119+
| $$(TBIN$(1)_T_$(4)_H_$(3))/
120120
@$$(call E, rustc: $$@)
121121
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$< --cfg $(4)
122122

branches/try/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ check-docs: cleantestlibs cleantmptestlogs check-stage2-docs
199199

200200
# Some less critical tests that are not prone to breakage.
201201
# Not run as part of the normal test suite, but tested by bors on checkin.
202-
check-secondary: check-build-compiletest check-build-lexer-verifier check-lexer check-pretty
202+
check-secondary: check-build-compiletest check-lexer check-pretty
203203

204204
# check + check-secondary.
205205
#

branches/try/src/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Source layout:
99
| `libcore/` | The Rust core library |
1010
| `libdebug/` | Debugging utilities |
1111
| `libstd/` | The standard library (imported and linked by default) |
12+
| `libgreen/` | The M:N runtime library |
13+
| `libnative/` | The 1:1 runtime library |
1214
| `libsyntax/` | The Rust parser and pretty-printer |
1315
| `libtest/` | Rust's test-runner code |
1416
| ------------------- | --------------------------------------------------------- |

branches/try/src/compiletest/errors.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::ascii::AsciiExt;
1211
use std::io::{BufferedReader, File};
1312
use regex::Regex;
1413

@@ -32,7 +31,7 @@ pub fn load_errors(re: &Regex, testfile: &Path) -> Vec<ExpectedError> {
3231
fn parse_expected(line_num: uint, line: &str, re: &Regex) -> Option<ExpectedError> {
3332
re.captures(line).and_then(|caps| {
3433
let adjusts = caps.name("adjusts").len();
35-
let kind = caps.name("kind").to_ascii_lower();
34+
let kind = caps.name("kind").to_ascii().to_lowercase().into_string();
3635
let msg = caps.name("msg").trim().to_string();
3736

3837
debug!("line={} kind={} msg={}", line_num, kind, msg);

branches/try/src/compiletest/runtest.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10-
10+
#[cfg(not(stage0))]
1111
use self::TargetLocation::*;
1212

1313
use common::Config;
@@ -1161,7 +1161,7 @@ fn compile_test_(config: &Config, props: &TestProps,
11611161
let args = make_compile_args(config,
11621162
props,
11631163
link_args,
1164-
|a, b| TargetLocation::ThisFile(make_exe_name(a, b)), testfile);
1164+
|a, b| ThisFile(make_exe_name(a, b)), testfile);
11651165
compose_and_run_compiler(config, props, testfile, args, None)
11661166
}
11671167

@@ -1219,7 +1219,7 @@ fn compose_and_run_compiler(
12191219
crate_type,
12201220
|a,b| {
12211221
let f = make_lib_name(a, b, testfile);
1222-
TargetLocation::ThisDirectory(f.dir_path())
1222+
ThisDirectory(f.dir_path())
12231223
},
12241224
&abs_ab);
12251225
let auxres = compose_and_run(config,
@@ -1296,11 +1296,11 @@ fn make_compile_args(config: &Config,
12961296
args.push("prefer-dynamic".to_string());
12971297
}
12981298
let path = match xform_file {
1299-
TargetLocation::ThisFile(path) => {
1299+
ThisFile(path) => {
13001300
args.push("-o".to_string());
13011301
path
13021302
}
1303-
TargetLocation::ThisDirectory(path) => {
1303+
ThisDirectory(path) => {
13041304
args.push("--out-dir".to_string());
13051305
path
13061306
}
@@ -1566,7 +1566,7 @@ fn _arm_exec_compiled_test(config: &Config,
15661566

15671567
let mut exitcode: int = 0;
15681568
for c in exitcode_out.as_slice().chars() {
1569-
if !c.is_numeric() { break; }
1569+
if !c.is_digit() { break; }
15701570
exitcode = exitcode * 10 + match c {
15711571
'0' ... '9' => c as int - ('0' as int),
15721572
_ => 101,
@@ -1672,8 +1672,7 @@ fn compile_test_and_save_bitcode(config: &Config, props: &TestProps,
16721672
let args = make_compile_args(config,
16731673
props,
16741674
link_args,
1675-
|a, b| TargetLocation::ThisDirectory(
1676-
output_base_name(a, b).dir_path()),
1675+
|a, b| ThisDirectory(output_base_name(a, b).dir_path()),
16771676
testfile);
16781677
compose_and_run_compiler(config, props, testfile, args, None)
16791678
}

0 commit comments

Comments
 (0)