Skip to content

Commit 5a54ca3

Browse files
author
Jakub Bukaj
committed
---
yaml --- r: 195306 b: refs/heads/snap-stage3 c: b3c58cf h: refs/heads/master v: v3
1 parent 96c338e commit 5a54ca3

File tree

3,127 files changed

+30249
-41687
lines changed

Some content is hidden

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

3,127 files changed

+30249
-41687
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 14192d6df5cc714e5c9a3ca70b08f2514d977be2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f8b6e28e758231f611e8e7923aa607cebd150717
4+
refs/heads/snap-stage3: b3c58cffa439beccccdf348a7a791a4e4766ab89
55
refs/heads/try: 961e0358e1a5c0faaef606e31e9965742c1643bf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/Makefile.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@
9797
# make check-stage1-rpass TESTNAME=my-shiny-new-test
9898
#
9999
# // Having trouble figuring out which test is failing? Turn off parallel tests
100-
# make check-stage1-std RUST_TEST_THREADS=1
100+
# make check-stage1-std RUST_TEST_TASKS=1
101+
#
102+
# This is hardly all there is to know of The Rust Build System's
103+
# mysteries. The tale continues on the wiki[1].
104+
#
105+
# [1]: https://github.com/rust-lang/rust/wiki/Note-testsuite
101106
#
102107
# If you really feel like getting your hands dirty, then:
103108
#

branches/snap-stage3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Read ["Installing Rust"] from [The Book].
6464
# Choose one based on platform:
6565
$ pacman -S mingw-w64-i686-toolchain
6666
$ pacman -S mingw-w64-x86_64-toolchain
67-
67+
6868
$ pacman -S base-devel
6969
```
7070

branches/snap-stage3/configure

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,7 @@ case $CFG_CPUTYPE in
461461
CFG_CPUTYPE=aarch64
462462
;;
463463

464-
# At some point, when ppc64[le] support happens, this will need to do
465-
# something clever. For now it's safe to assume that we're only ever
466-
# interested in building 32 bit.
467-
powerpc | ppc | ppc64)
464+
powerpc)
468465
CFG_CPUTYPE=powerpc
469466
;;
470467

@@ -479,19 +476,10 @@ esac
479476
# Detect 64 bit linux systems with 32 bit userland and force 32 bit compilation
480477
if [ $CFG_OSTYPE = unknown-linux-gnu -a $CFG_CPUTYPE = x86_64 ]
481478
then
482-
# $SHELL does not exist in standard 'sh', so probably only exists
483-
# if configure is running in an interactive bash shell. /usr/bin/env
484-
# exists *everywhere*.
485-
BIN_TO_PROBE="$SHELL"
486-
if [ -z "$BIN_TO_PROBE" -a -e "/usr/bin/env" ]; then
487-
BIN_TO_PROBE="/usr/bin/env"
479+
file -L "$SHELL" | grep -q "x86[_-]64"
480+
if [ $? != 0 ]; then
481+
CFG_CPUTYPE=i686
488482
fi
489-
if [ -n "$BIN_TO_PROBE" ]; then
490-
file -L "$BIN_TO_PROBE" | grep -q "x86[_-]64"
491-
if [ $? != 0 ]; then
492-
CFG_CPUTYPE=i686
493-
fi
494-
fi
495483
fi
496484

497485

@@ -835,11 +823,11 @@ then
835823
LLVM_VERSION=$($LLVM_CONFIG --version)
836824

837825
case $LLVM_VERSION in
838-
(3.[5-6]*)
826+
(3.[2-6]*)
839827
msg "found ok version of LLVM: $LLVM_VERSION"
840828
;;
841829
(*)
842-
err "bad LLVM version: $LLVM_VERSION, need >=3.5"
830+
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
843831
;;
844832
esac
845833
fi

branches/snap-stage3/man/rustc.1

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -242,28 +242,6 @@ full debug info with variable and type information.
242242
\fBopt\-level\fR=\fIVAL\fR
243243
Optimize with possible levels 0\[en]3
244244

245-
.SH ENVIRONMENT
246-
247-
Some of these affect the output of the compiler, while others affect programs
248-
which link to the standard library.
249-
250-
.TP
251-
\fBRUST_TEST_THREADS\fR
252-
The test framework Rust provides executes tests in parallel. This variable sets
253-
the maximum number of threads used for this purpose.
254-
255-
.TP
256-
\fBRUST_TEST_NOCAPTURE\fR
257-
A synonym for the --nocapture flag.
258-
259-
.TP
260-
\fBRUST_MIN_STACK\fR
261-
Sets the minimum stack size for new threads.
262-
263-
.TP
264-
\fBRUST_BACKTRACE\fR
265-
If set, produces a backtrace in the output of a program which panics.
266-
267245
.SH "EXAMPLES"
268246
To build an executable from a source file with a main function:
269247
$ rustc \-o hello hello.rs

branches/snap-stage3/mk/cfg/x86_64-unknown-linux-gnu.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ CFG_LDPATH_x86_64-unknown-linux-gnu :=
2525
CFG_RUN_x86_64-unknown-linux-gnu=$(2)
2626
CFG_RUN_TARG_x86_64-unknown-linux-gnu=$(call CFG_RUN_x86_64-unknown-linux-gnu,,$(2))
2727
CFG_GNU_TRIPLE_x86_64-unknown-linux-gnu := x86_64-unknown-linux-gnu
28+

branches/snap-stage3/mk/dist.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ PKG_FILES := \
5353
driver \
5454
etc \
5555
$(foreach crate,$(CRATES),lib$(crate)) \
56-
libcollectionstest \
5756
libcoretest \
5857
libbacktrace \
5958
rt \

branches/snap-stage3/mk/llvm.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ $$(LLVM_STAMP_$(1)): $(S)src/rustllvm/llvm-auto-clean-trigger
4444
touch -r $$@.start_time $$@ && rm $$@.start_time
4545

4646
ifeq ($$(CFG_ENABLE_LLVM_STATIC_STDCPP),1)
47-
LLVM_STDCPP_RUSTFLAGS_$(1) = -L "$$(dir $$(shell $$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
48-
-print-file-name=libstdc++.a))"
47+
LLVM_STDCPP_LOCATION_$(1) = $$(shell $$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
48+
-print-file-name=libstdc++.a)
4949
else
50-
LLVM_STDCPP_RUSTFLAGS_$(1) =
50+
LLVM_STDCPP_LOCATION_$(1) =
5151
endif
5252

5353

branches/snap-stage3/mk/main.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
3030
CFG_DISABLE_UNSTABLE_FEATURES=1
3131
endif
3232
ifeq ($(CFG_RELEASE_CHANNEL),beta)
33-
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
34-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
33+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
34+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
3535
CFG_DISABLE_UNSTABLE_FEATURES=1
3636
endif
3737
ifeq ($(CFG_RELEASE_CHANNEL),nightly)
@@ -290,7 +290,6 @@ LLVM_VERSION_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --version)
290290
LLVM_BINDIR_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --bindir)
291291
LLVM_INCDIR_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --includedir)
292292
LLVM_LIBDIR_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --libdir)
293-
LLVM_LIBDIR_RUSTFLAGS_$(1)=-L "$$(LLVM_LIBDIR_$(1))"
294293
LLVM_LIBS_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --libs $$(LLVM_COMPONENTS))
295294
LLVM_LDFLAGS_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --ldflags)
296295
# On FreeBSD, it may search wrong headers (that are for pre-installed LLVM),

branches/snap-stage3/mk/prepare.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,5 @@ prepare-maybe-clean-$(1):
221221

222222

223223
endef
224+
225+

branches/snap-stage3/mk/target.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): CFG_COMPILER_HOST_TRIPLE = $(2)
7272
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
7373
$$(CRATEFILE_$(4)) \
7474
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4)) \
75-
$$(LLVM_CONFIG_$(2)) \
7675
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
7776
| $$(TLIB$(1)_T_$(2)_H_$(3))/
7877
@$$(call E, rustc: $$(@D)/lib$(4))
@@ -85,8 +84,8 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
8584
$$(subst @,,$$(STAGE$(1)_T_$(2)_H_$(3))) \
8685
$$(RUST_LIB_FLAGS_ST$(1)) \
8786
-L "$$(RT_OUTPUT_DIR_$(2))" \
88-
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
89-
$$(LLVM_STDCPP_RUSTFLAGS_$(2)) \
87+
-L "$$(LLVM_LIBDIR_$(2))" \
88+
-L "$$(dir $$(LLVM_STDCPP_LOCATION_$(2)))" \
9089
$$(RUSTFLAGS_$(4)) \
9190
--out-dir $$(@D) \
9291
-C extra-filename=-$$(CFG_FILENAME_EXTRA) \

branches/snap-stage3/mk/tests.mk

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
DEPS_coretest :=
2020
$(eval $(call RUST_CRATE,coretest))
2121

22-
DEPS_collectionstest :=
23-
$(eval $(call RUST_CRATE,collectionstest))
24-
25-
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) collectionstest coretest
22+
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) coretest
2623
TEST_DOC_CRATES = $(DOC_CRATES)
2724
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve rustc_trans rustc_lint,\
2825
$(HOST_CRATES))
@@ -375,7 +372,7 @@ $(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2)): \
375372
$(Q)CFG_LLVM_LINKAGE_FILE=$$(LLVM_LINKAGE_PATH_$(3)) \
376373
$$(subst @,,$$(STAGE$(1)_T_$(2)_H_$(3))) -o $$@ $$< --test \
377374
-L "$$(RT_OUTPUT_DIR_$(2))" \
378-
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
375+
-L "$$(LLVM_LIBDIR_$(2))" \
379376
$$(RUSTFLAGS_$(4))
380377

381378
endef
@@ -569,11 +566,6 @@ ifeq ($(CFG_OSTYPE),apple-darwin)
569566
CTEST_DISABLE_debuginfo-gdb = "gdb on darwin needs root"
570567
endif
571568

572-
ifeq ($(findstring android, $(CFG_TARGET)), android)
573-
CTEST_DISABLE_debuginfo-gdb =
574-
CTEST_DISABLE_debuginfo-lldb = "lldb tests are disabled on android"
575-
endif
576-
577569
# CTEST_DISABLE_NONSELFHOST_$(TEST_GROUP), if set, will cause that
578570
# test group to be disabled *unless* the target is able to build a
579571
# compiler (i.e. when the target triple is in the set of of host

branches/snap-stage3/mk/util.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ else
1717
endif
1818

1919
S := $(CFG_SRC_DIR)
20+

branches/snap-stage3/src/compiletest/compiletest.rs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@
1212

1313
#![feature(box_syntax)]
1414
#![feature(collections)]
15+
#![feature(int_uint)]
1516
#![feature(old_io)]
17+
#![feature(old_path)]
1618
#![feature(rustc_private)]
1719
#![feature(unboxed_closures)]
1820
#![feature(std_misc)]
1921
#![feature(test)]
22+
#![feature(core)]
23+
#![feature(path)]
24+
#![feature(io)]
25+
#![feature(net)]
2026
#![feature(path_ext)]
21-
#![feature(convert)]
22-
#![feature(str_char)]
2327

2428
#![deny(warnings)]
2529

@@ -31,6 +35,7 @@ extern crate log;
3135

3236
use std::env;
3337
use std::fs;
38+
use std::old_io;
3439
use std::path::{Path, PathBuf};
3540
use std::thunk::Thunk;
3641
use getopts::{optopt, optflag, reqopt};
@@ -115,7 +120,7 @@ pub fn parse_config(args: Vec<String> ) -> Config {
115120

116121
fn opt_path(m: &getopts::Matches, nm: &str) -> PathBuf {
117122
match m.opt_str(nm) {
118-
Some(s) => PathBuf::from(&s),
123+
Some(s) => PathBuf::new(&s),
119124
None => panic!("no option (=path) found for {}", nm),
120125
}
121126
}
@@ -130,18 +135,18 @@ pub fn parse_config(args: Vec<String> ) -> Config {
130135
compile_lib_path: matches.opt_str("compile-lib-path").unwrap(),
131136
run_lib_path: matches.opt_str("run-lib-path").unwrap(),
132137
rustc_path: opt_path(matches, "rustc-path"),
133-
clang_path: matches.opt_str("clang-path").map(|s| PathBuf::from(&s)),
138+
clang_path: matches.opt_str("clang-path").map(|s| PathBuf::new(&s)),
134139
valgrind_path: matches.opt_str("valgrind-path"),
135140
force_valgrind: matches.opt_present("force-valgrind"),
136-
llvm_bin_path: matches.opt_str("llvm-bin-path").map(|s| PathBuf::from(&s)),
141+
llvm_bin_path: matches.opt_str("llvm-bin-path").map(|s| PathBuf::new(&s)),
137142
src_base: opt_path(matches, "src-base"),
138143
build_base: opt_path(matches, "build-base"),
139144
aux_base: opt_path(matches, "aux-base"),
140145
stage_id: matches.opt_str("stage-id").unwrap(),
141146
mode: matches.opt_str("mode").unwrap().parse().ok().expect("invalid mode"),
142147
run_ignored: matches.opt_present("ignored"),
143148
filter: filter,
144-
logfile: matches.opt_str("logfile").map(|s| PathBuf::from(&s)),
149+
logfile: matches.opt_str("logfile").map(|s| PathBuf::new(&s)),
145150
runtool: matches.opt_str("runtool"),
146151
host_rustcflags: matches.opt_str("host-rustcflags"),
147152
target_rustcflags: matches.opt_str("target-rustcflags"),
@@ -224,15 +229,15 @@ pub fn run_tests(config: &Config) {
224229
// android debug-info test uses remote debugger
225230
// so, we test 1 task at once.
226231
// also trying to isolate problems with adb_run_wrapper.sh ilooping
227-
env::set_var("RUST_TEST_THREADS","1");
232+
env::set_var("RUST_TEST_TASKS","1");
228233
}
229234

230235
match config.mode {
231236
DebugInfoLldb => {
232237
// Some older versions of LLDB seem to have problems with multiple
233238
// instances running in parallel, so only run one test task at a
234239
// time.
235-
env::set_var("RUST_TEST_THREADS", "1");
240+
env::set_var("RUST_TEST_TASKS", "1");
236241
}
237242
_ => { /* proceed */ }
238243
}
@@ -242,11 +247,7 @@ pub fn run_tests(config: &Config) {
242247
// sadly osx needs some file descriptor limits raised for running tests in
243248
// parallel (especially when we have lots and lots of child processes).
244249
// For context, see #8904
245-
#[allow(deprecated)]
246-
fn raise_fd_limit() {
247-
std::old_io::test::raise_fd_limit();
248-
}
249-
raise_fd_limit();
250+
old_io::test::raise_fd_limit();
250251
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
251252
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
252253
env::set_var("__COMPAT_LAYER", "RunAsInvoker");

branches/snap-stage3/src/compiletest/errors.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ use std::io::prelude::*;
1515
use std::path::Path;
1616

1717
pub struct ExpectedError {
18-
pub line: usize,
18+
pub line: uint,
1919
pub kind: String,
2020
pub msg: String,
2121
}
2222

2323
#[derive(PartialEq, Debug)]
24-
enum WhichLine { ThisLine, FollowPrevious(usize), AdjustBackward(usize) }
24+
enum WhichLine { ThisLine, FollowPrevious(uint), AdjustBackward(uint) }
2525

2626
/// Looks for either "//~| KIND MESSAGE" or "//~^^... KIND MESSAGE"
2727
/// The former is a "follow" that inherits its target from the preceding line;
@@ -58,8 +58,8 @@ pub fn load_errors(testfile: &Path) -> Vec<ExpectedError> {
5858
}).collect()
5959
}
6060

61-
fn parse_expected(last_nonfollow_error: Option<usize>,
62-
line_num: usize,
61+
fn parse_expected(last_nonfollow_error: Option<uint>,
62+
line_num: uint,
6363
line: &str) -> Option<(WhichLine, ExpectedError)> {
6464
let start = match line.find("//~") { Some(i) => i, None => return None };
6565
let (follow, adjusts) = if line.char_at(start + 3) == '|' {

0 commit comments

Comments
 (0)