Skip to content

Commit bde2700

Browse files
committed
---
yaml --- r: 191475 b: refs/heads/try c: 62be565 h: refs/heads/master i: 191473: 0900d87 191471: 11f7b98 v: v3
1 parent 3b6783b commit bde2700

File tree

880 files changed

+18981
-24171
lines changed

Some content is hidden

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

880 files changed

+18981
-24171
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: 809a554fca2d0ebc2ba50077016fe282a4064752
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c64d671671aea2e44ee7fc6eb00ee75fc30ed7b9
5-
refs/heads/try: f4e0ce66a3cde6bd0df54a367896c5c6a3392c53
5+
refs/heads/try: 62be565811e9805ec1045395eef2f977d7385efb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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/try/configure

Lines changed: 4 additions & 8 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

@@ -763,9 +760,8 @@ fi
763760
# Force bitrig to build with clang; gcc doesn't like us there
764761
if [ $CFG_OSTYPE = unknown-bitrig ]
765762
then
766-
step_msg "on Bitrig, forcing use of clang, disabling jemalloc"
763+
step_msg "on Bitrig, forcing use of clang"
767764
CFG_ENABLE_CLANG=1
768-
CFG_ENABLE_JEMALLOC=0
769765
fi
770766

771767
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
@@ -826,11 +822,11 @@ then
826822
LLVM_VERSION=$($LLVM_CONFIG --version)
827823

828824
case $LLVM_VERSION in
829-
(3.[5-6]*)
825+
(3.[2-6]*)
830826
msg "found ok version of LLVM: $LLVM_VERSION"
831827
;;
832828
(*)
833-
err "bad LLVM version: $LLVM_VERSION, need >=3.5"
829+
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
834830
;;
835831
esac
836832
fi

branches/try/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/try/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/try/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/try/mk/main.mk

Lines changed: 3 additions & 4 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)
@@ -130,7 +130,7 @@ ifdef CFG_DISABLE_DEBUG
130130
CFG_RUSTC_FLAGS += --cfg ndebug
131131
else
132132
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG))
133-
CFG_RUSTC_FLAGS += --cfg debug -C debug-assertions=on
133+
CFG_RUSTC_FLAGS += --cfg debug
134134
endif
135135

136136
ifdef SAVE_TEMPS
@@ -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/try/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/try/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/try/mk/tests.mk

Lines changed: 3 additions & 6 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
@@ -593,7 +590,7 @@ TEST_SREQ$(1)_T_$(2)_H_$(3) = \
593590

594591
# The tests select when to use debug configuration on their own;
595592
# remove directive, if present, from CFG_RUSTC_FLAGS (issue #7898).
596-
CTEST_RUSTC_FLAGS := $$(subst -C debug-assertions,,$$(subst -C debug-assertions=on,,$$(CFG_RUSTC_FLAGS)))
593+
CTEST_RUSTC_FLAGS := $$(subst -C debug-assertions,,$$(CFG_RUSTC_FLAGS))
597594

598595
# The tests cannot be optimized while the rest of the compiler is optimized, so
599596
# filter out the optimization (if any) from rustc and then figure out if we need

branches/try/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/try/src/compiletest/compiletest.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#![feature(unboxed_closures)]
2020
#![feature(std_misc)]
2121
#![feature(test)]
22+
#![feature(core)]
23+
#![feature(path)]
24+
#![feature(io)]
25+
#![feature(net)]
2226
#![feature(path_ext)]
2327

2428
#![deny(warnings)]
@@ -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};
@@ -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/try/src/compiletest/procsrv.rs

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

11-
#![allow(deprecated)] // for old path, for dynamic_lib
12-
1311
use std::process::{ExitStatus, Command, Child, Output, Stdio};
1412
use std::io::prelude::*;
1513
use std::dynamic_lib::DynamicLibrary;

branches/try/src/compiletest/runtest.rs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use std::io::BufReader;
2626
use std::io::prelude::*;
2727
use std::iter::repeat;
2828
use std::net::TcpStream;
29+
use std::old_io::timer;
2930
use std::path::{Path, PathBuf};
3031
use std::process::{Command, Output, ExitStatus};
3132
use std::str;
@@ -451,11 +452,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
451452
.expect(&format!("failed to exec `{:?}`", config.adb_path));
452453
loop {
453454
//waiting 1 second for gdbserver start
454-
#[allow(deprecated)]
455-
fn sleep() {
456-
::std::old_io::timer::sleep(Duration::milliseconds(1000));
457-
}
458-
sleep();
455+
timer::sleep(Duration::milliseconds(1000));
459456
if TcpStream::connect("127.0.0.1:5039").is_ok() {
460457
break
461458
}
@@ -1052,22 +1049,22 @@ fn scan_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
10521049
if *idx >= haystack.len() {
10531050
return false;
10541051
}
1055-
let ch = haystack.char_at(*idx);
1056-
if ch != needle {
1052+
let range = haystack.char_range_at(*idx);
1053+
if range.ch != needle {
10571054
return false;
10581055
}
1059-
*idx += ch.len_utf8();
1056+
*idx = range.next;
10601057
return true;
10611058
}
10621059

10631060
fn scan_integer(haystack: &str, idx: &mut uint) -> bool {
10641061
let mut i = *idx;
10651062
while i < haystack.len() {
1066-
let ch = haystack.char_at(i);
1067-
if ch < '0' || '9' < ch {
1063+
let range = haystack.char_range_at(i);
1064+
if range.ch < '0' || '9' < range.ch {
10681065
break;
10691066
}
1070-
i += ch.len_utf8();
1067+
i = range.next;
10711068
}
10721069
if i == *idx {
10731070
return false;
@@ -1083,9 +1080,9 @@ fn scan_string(haystack: &str, needle: &str, idx: &mut uint) -> bool {
10831080
if haystack_i >= haystack.len() {
10841081
return false;
10851082
}
1086-
let ch = haystack.char_at(haystack_i);
1087-
haystack_i += ch.len_utf8();
1088-
if !scan_char(needle, ch, &mut needle_i) {
1083+
let range = haystack.char_range_at(haystack_i);
1084+
haystack_i = range.next;
1085+
if !scan_char(needle, range.ch, &mut needle_i) {
10891086
return false;
10901087
}
10911088
}

0 commit comments

Comments
 (0)