Skip to content

Commit d217b20

Browse files
author
Julian Orth
committed
---
yaml --- r: 134647 b: refs/heads/try c: 9c72da5 h: refs/heads/master i: 134645: 042c795 134643: 34b97de 134639: 820ee84 v: v3
1 parent 73699ee commit d217b20

File tree

611 files changed

+12910
-20148
lines changed

Some content is hidden

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

611 files changed

+12910
-20148
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: 58413c09cd52ea4005d6ea7733ba1fb3a8f36589
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 437179ed8bf7f7672f84b19265df1ce569e70490
5-
refs/heads/try: cbb07e81be99271f9e240a27dcf540686d8c0bfc
5+
refs/heads/try: 9c72da52514428c187742de3e8b796949e72d34f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/configure

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ case $CFG_OSTYPE in
306306
# instead, msys defines $MSYSTEM which is MINGW32 on i686 and
307307
# MINGW64 on x86_64.
308308
CFG_CPUTYPE=i686
309-
CFG_OSTYPE=w64-mingw32
309+
CFG_OSTYPE=pc-mingw32
310310
if [ "$MSYSTEM" = MINGW64 ]
311311
then
312312
CFG_CPUTYPE=x86_64
@@ -453,8 +453,6 @@ valopt datadir "${CFG_PREFIX}/share" "install data"
453453
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
454454
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
455455

456-
valopt release-channel "source" "the name of the release channel to build"
457-
458456
# On windows we just store the libraries in the bin directory because
459457
# there's no rpath. This is where the build system itself puts libraries;
460458
# --libdir is used to configure the installation directory.
@@ -477,23 +475,6 @@ fi
477475
step_msg "validating $CFG_SELF args"
478476
validate_opt
479477

480-
# Validate the release channel
481-
case "$CFG_RELEASE_CHANNEL" in
482-
(source | nightly | beta | stable)
483-
;;
484-
(*)
485-
err "release channel must be 'source', 'nightly', 'beta' or 'stable'"
486-
;;
487-
esac
488-
489-
# Continue supporting the old --enable-nightly flag to transition the bots
490-
# XXX Remove me
491-
if [ $CFG_ENABLE_NIGHTLY -eq 1 ]
492-
then
493-
CFG_RELEASE_CHANNEL=nightly
494-
putvar CFG_RELEASE_CHANNEL
495-
fi
496-
497478
step_msg "looking for build programs"
498479

499480
probe_need CFG_PERL perl
@@ -649,7 +630,7 @@ then
649630
# check that gcc, cc and g++ all point to the same compiler.
650631
# note that for xcode 5, g++ points to clang, not clang++
651632
if !((chk_cc gcc clang && chk_cc g++ clang) ||
652-
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc))); then
633+
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc))) then
653634
err "the gcc and g++ in your path point to different compilers.
654635
Check which versions are in your path with gcc --version and g++ --version.
655636
To resolve this problem, either fix your PATH or run configure with --enable-clang"

branches/try/man/rustc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTC "1" "March 2014" "rustc 0.12.0" "User Commands"
1+
.TH RUSTC "1" "March 2014" "rustc 0.12.0-pre" "User Commands"
22
.SH NAME
33
rustc \- The Rust compiler
44
.SH SYNOPSIS

branches/try/man/rustdoc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTDOC "1" "March 2014" "rustdoc 0.12.0" "User Commands"
1+
.TH RUSTDOC "1" "March 2014" "rustdoc 0.12.0-pre" "User Commands"
22
.SH NAME
33
rustdoc \- generate documentation from Rust source code
44
.SH SYNOPSIS

branches/try/mk/crates.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5959
TOOLS := compiletest rustdoc rustc
6060

6161
DEPS_core :=
62-
DEPS_rlibc := core
62+
DEPS_rlibc :=
6363
DEPS_unicode := core
6464
DEPS_alloc := core libc native:jemalloc
6565
DEPS_debug := std
@@ -70,7 +70,7 @@ DEPS_graphviz := std
7070
DEPS_green := std native:context_switch
7171
DEPS_rustuv := std native:uv native:uv_support
7272
DEPS_native := std
73-
DEPS_syntax := std term serialize log fmt_macros debug arena
73+
DEPS_syntax := std term serialize log fmt_macros debug
7474
DEPS_rustc := syntax flate arena serialize getopts rbml \
7575
time log graphviz debug rustc_llvm rustc_back
7676
DEPS_rustc_llvm := native:rustllvm libc std

branches/try/mk/main.mk

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,22 @@
1414

1515
# The version number
1616
CFG_RELEASE_NUM=0.12.0
17+
CFG_RELEASE_LABEL=-pre
1718

1819
CFG_FILENAME_EXTRA=4e7c5e5c
1920

20-
ifeq ($(CFG_RELEASE_CHANNEL),stable)
21-
# This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"
22-
CFG_RELEASE=$(CFG_RELEASE_NUM)
23-
# This is the string used in dist artifact file names, e.g. "0.12.0", "nightly"
24-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
25-
endif
26-
ifeq ($(CFG_RELEASE_CHANNEL),beta)
27-
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta
28-
# When building beta/nightly distributables just reuse the same "beta"
29-
# name so when we upload we'll always override the previous
30-
# nighly. This doesn't actually impact the version reported by rustc -
31-
# it's just for file naming.
32-
CFG_PACKAGE_VERS=beta
33-
endif
34-
ifeq ($(CFG_RELEASE_CHANNEL),nightly)
35-
CFG_RELEASE=$(CFG_RELEASE_NUM)-nightly
21+
ifndef CFG_ENABLE_NIGHTLY
22+
# This is the normal version string
23+
CFG_RELEASE=$(CFG_RELEASE_NUM)$(CFG_RELEASE_LABEL)
24+
CFG_PACKAGE_VERS=$(CFG_RELEASE)
25+
else
26+
# Modify the version label for nightly builds
27+
CFG_RELEASE=$(CFG_RELEASE_NUM)$(CFG_RELEASE_LABEL)-nightly
28+
# When building nightly distributables just reuse the same "rust-nightly" name
29+
# so when we upload we'll always override the previous nighly. This doesn't actually
30+
# impact the version reported by rustc - it's just for file naming.
3631
CFG_PACKAGE_VERS=nightly
3732
endif
38-
ifeq ($(CFG_RELEASE_CHANNEL),source)
39-
CFG_RELEASE=$(CFG_RELEASE_NUM)-pre
40-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-pre
41-
endif
42-
4333
# The name of the package to use for creating tarballs, installers etc.
4434
CFG_PACKAGE_NAME=rust-$(CFG_PACKAGE_VERS)
4535

branches/try/mk/platform.mk

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,36 @@ CFG_RUN_mips-unknown-linux-gnu=
433433
CFG_RUN_TARG_mips-unknown-linux-gnu=
434434
RUSTC_FLAGS_mips-unknown-linux-gnu := -C target-cpu=mips32r2 -C target-feature="+mips32r2,+o32" -C soft-float
435435

436+
# i686-pc-mingw32 configuration
437+
CC_i686-pc-mingw32=$(CC)
438+
CXX_i686-pc-mingw32=$(CXX)
439+
CPP_i686-pc-mingw32=$(CPP)
440+
AR_i686-pc-mingw32=$(AR)
441+
CFG_LIB_NAME_i686-pc-mingw32=$(1).dll
442+
CFG_STATIC_LIB_NAME_i686-pc-mingw32=$(1).lib
443+
CFG_LIB_GLOB_i686-pc-mingw32=$(1)-*.dll
444+
CFG_LIB_DSYM_GLOB_i686-pc-mingw32=$(1)-*.dylib.dSYM
445+
CFG_CFLAGS_mips-i686-pc-mingw32 := -m32 -march=i686 -D_WIN32_WINNT=0x0600 $(CFLAGS)
446+
CFG_GCCISH_CFLAGS_i686-pc-mingw32 := -Wall -Werror -g -m32 -march=i686 -D_WIN32_WINNT=0x0600 -I$(CFG_SRC_DIR)src/etc/mingw-fix-include $(CFLAGS)
447+
CFG_GCCISH_CXXFLAGS_i686-pc-mingw32 := -fno-rtti $(CXXFLAGS)
448+
CFG_GCCISH_LINK_FLAGS_i686-pc-mingw32 := -shared -fPIC -g -m32
449+
CFG_GCCISH_DEF_FLAG_i686-pc-mingw32 :=
450+
CFG_GCCISH_PRE_LIB_FLAGS_i686-pc-mingw32 :=
451+
CFG_GCCISH_POST_LIB_FLAGS_i686-pc-mingw32 :=
452+
CFG_DEF_SUFFIX_i686-pc-mingw32 := .mingw32.def
453+
CFG_LLC_FLAGS_i686-pc-mingw32 :=
454+
CFG_INSTALL_NAME_i686-pc-mingw32 =
455+
CFG_LIBUV_LINK_FLAGS_i686-pc-mingw32 := -lws2_32 -lpsapi -liphlpapi
456+
CFG_LLVM_BUILD_ENV_i686-pc-mingw32 := CPATH=$(CFG_SRC_DIR)src/etc/mingw-fix-include
457+
CFG_EXE_SUFFIX_i686-pc-mingw32 := .exe
458+
CFG_WINDOWSY_i686-pc-mingw32 := 1
459+
CFG_UNIXY_i686-pc-mingw32 :=
460+
CFG_PATH_MUNGE_i686-pc-mingw32 :=
461+
CFG_LDPATH_i686-pc-mingw32 :=$(CFG_LDPATH_i686-pc-mingw32):$(PATH)
462+
CFG_RUN_i686-pc-mingw32=PATH="$(CFG_LDPATH_i686-pc-mingw32):$(1)" $(2)
463+
CFG_RUN_TARG_i686-pc-mingw32=$(call CFG_RUN_i686-pc-mingw32,$(HLIB$(1)_H_$(CFG_BUILD)),$(2))
464+
RUSTC_FLAGS_i686-pc-mingw32=-C link-args="-Wl,--large-address-aware"
465+
436466
# i586-mingw32msvc configuration
437467
CC_i586-mingw32msvc=$(CFG_MINGW32_CROSS_PATH)/bin/i586-mingw32msvc-gcc
438468
CXX_i586-mingw32msvc=$(CFG_MINGW32_CROSS_PATH)/bin/i586-mingw32msvc-g++
@@ -473,7 +503,7 @@ CFG_LIB_NAME_i686-w64-mingw32=$(1).dll
473503
CFG_STATIC_LIB_NAME_i686-w64-mingw32=$(1).lib
474504
CFG_LIB_GLOB_i686-w64-mingw32=$(1)-*.dll
475505
CFG_LIB_DSYM_GLOB_i686-w64-mingw32=$(1)-*.dylib.dSYM
476-
CFG_CFLAGS_i686-w64-mingw32 := -march=i686 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
506+
CFG_CFLAGS_i586-w64-mingw32 := -march=i586 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
477507
CFG_GCCISH_CFLAGS_i686-w64-mingw32 := -Wall -Werror -g -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
478508
CFG_GCCISH_CXXFLAGS_i686-w64-mingw32 := -fno-rtti $(CXXFLAGS)
479509
CFG_GCCISH_LINK_FLAGS_i686-w64-mingw32 := -shared -g -m32
@@ -491,8 +521,6 @@ CFG_PATH_MUNGE_i686-w64-mingw32 :=
491521
CFG_LDPATH_i686-w64-mingw32 :=$(CFG_LDPATH_i686-w64-mingw32):$(PATH)
492522
CFG_RUN_i686-w64-mingw32=PATH="$(CFG_LDPATH_i686-w64-mingw32):$(1)" $(2)
493523
CFG_RUN_TARG_i686-w64-mingw32=$(call CFG_RUN_i686-w64-mingw32,$(HLIB$(1)_H_$(CFG_BUILD)),$(2))
494-
# Stop rustc from OOMing when building itself (I think)
495-
RUSTC_FLAGS_i686-w64-mingw32=-C link-args="-Wl,--large-address-aware"
496524
RUSTC_CROSS_FLAGS_i686-w64-mingw32 :=
497525

498526
# x86_64-w64-mingw32 configuration

branches/try/mk/rt.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,6 @@ JEMALLOC_DEPS := $(wildcard \
288288
$(S)src/jemalloc/*/*/*/*)
289289
endif
290290

291-
# See #17183 for details, this file is touched during the build process so we
292-
# don't want to consider it as a dependency.
293-
JEMALLOC_DEPS := $(filter-out $(S)src/jemalloc/VERSION,$(JEMALLOC_DEPS))
294-
295291
JEMALLOC_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),jemalloc)
296292
ifeq ($$(CFG_WINDOWSY_$(1)),1)
297293
JEMALLOC_REAL_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),jemalloc_s)

branches/try/mk/tests.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ check-ref: cleantestlibs cleantmptestlogs check-stage2-rpass \
194194
check-docs: cleantestlibs cleantmptestlogs check-stage2-docs
195195
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
196196

197+
# NOTE: Remove after reprogramming windows bots
198+
check-fast: check-lite
199+
197200
# Some less critical tests that are not prone to breakage.
198201
# Not run as part of the normal test suite, but tested by bors on checkin.
199202
check-secondary: check-lexer check-pretty
@@ -280,7 +283,7 @@ tidy:
280283
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
281284
$(Q)echo $(ALL_HS) \
282285
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
283-
$(Q)find $(S)src -type f -perm a+x \
286+
$(Q)find $(S)src -type f -perm +111 \
284287
-not -name '*.rs' -and -not -name '*.py' \
285288
-and -not -name '*.sh' \
286289
| grep '^$(S)src/jemalloc' -v \

branches/try/src/compiletest/compiletest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ pub fn run_tests(config: &Config) {
259259
// parallel (especially when we have lots and lots of child processes).
260260
// For context, see #8904
261261
io::test::raise_fd_limit();
262-
let res = test::run_tests_console(&opts, tests.into_iter().collect());
262+
let res = test::run_tests_console(&opts, tests.move_iter().collect());
263263
match res {
264264
Ok(true) => {}
265265
Ok(false) => fail!("Some tests failed"),
@@ -400,4 +400,4 @@ fn extract_gdb_version(full_version_line: Option<String>) -> Option<String> {
400400
},
401401
_ => None
402402
}
403-
}
403+
}

branches/try/src/compiletest/header.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ pub struct TestProps {
4242
pub pretty_mode: String,
4343
// Only compare pretty output and don't try compiling
4444
pub pretty_compare_only: bool,
45-
// Patterns which must not appear in the output of a cfail test.
46-
pub forbid_output: Vec<String>,
4745
}
4846

4947
// Load any test directives embedded in the file
@@ -61,7 +59,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
6159
let mut no_pretty_expanded = false;
6260
let mut pretty_mode = None;
6361
let mut pretty_compare_only = false;
64-
let mut forbid_output = Vec::new();
6562
iter_header(testfile, |ln| {
6663
match parse_error_pattern(ln) {
6764
Some(ep) => error_patterns.push(ep),
@@ -119,11 +116,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
119116
None => ()
120117
};
121118

122-
match parse_forbid_output(ln) {
123-
Some(of) => forbid_output.push(of),
124-
None => (),
125-
}
126-
127119
true
128120
});
129121

@@ -140,8 +132,7 @@ pub fn load_props(testfile: &Path) -> TestProps {
140132
no_prefer_dynamic: no_prefer_dynamic,
141133
no_pretty_expanded: no_pretty_expanded,
142134
pretty_mode: pretty_mode.unwrap_or("normal".to_string()),
143-
pretty_compare_only: pretty_compare_only,
144-
forbid_output: forbid_output,
135+
pretty_compare_only: pretty_compare_only
145136
}
146137
}
147138

@@ -219,10 +210,6 @@ fn parse_error_pattern(line: &str) -> Option<String> {
219210
parse_name_value_directive(line, "error-pattern")
220211
}
221212

222-
fn parse_forbid_output(line: &str) -> Option<String> {
223-
parse_name_value_directive(line, "forbid-output")
224-
}
225-
226213
fn parse_aux_build(line: &str) -> Option<String> {
227214
parse_name_value_directive(line, "aux-build")
228215
}

branches/try/src/compiletest/procsrv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub fn run(lib_path: &str,
4040
let mut cmd = Command::new(prog);
4141
cmd.args(args);
4242
add_target_env(&mut cmd, lib_path, aux_path);
43-
for (key, val) in env.into_iter() {
43+
for (key, val) in env.move_iter() {
4444
cmd.env(key, val);
4545
}
4646

@@ -72,7 +72,7 @@ pub fn run_background(lib_path: &str,
7272
let mut cmd = Command::new(prog);
7373
cmd.args(args);
7474
add_target_env(&mut cmd, lib_path, aux_path);
75-
for (key, val) in env.into_iter() {
75+
for (key, val) in env.move_iter() {
7676
cmd.env(key, val);
7777
}
7878

0 commit comments

Comments
 (0)