Skip to content

Commit 1b454ed

Browse files
committed
---
yaml --- r: 193975 b: refs/heads/beta c: e98e391 h: refs/heads/master i: 193973: 51e183b 193971: 72b12c4 193967: 639f840 v: v3
1 parent 2bfeb82 commit 1b454ed

File tree

880 files changed

+24168
-18958
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

+24168
-18958
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 62be565811e9805ec1045395eef2f977d7385efb
34+
refs/heads/beta: e98e391337fdbf32607de4889345c13fed9de21b
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

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

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

464-
powerpc)
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)
465468
CFG_CPUTYPE=powerpc
466469
;;
467470

@@ -760,8 +763,9 @@ fi
760763
# Force bitrig to build with clang; gcc doesn't like us there
761764
if [ $CFG_OSTYPE = unknown-bitrig ]
762765
then
763-
step_msg "on Bitrig, forcing use of clang"
766+
step_msg "on Bitrig, forcing use of clang, disabling jemalloc"
764767
CFG_ENABLE_CLANG=1
768+
CFG_ENABLE_JEMALLOC=0
765769
fi
766770

767771
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
@@ -822,11 +826,11 @@ then
822826
LLVM_VERSION=$($LLVM_CONFIG --version)
823827

824828
case $LLVM_VERSION in
825-
(3.[2-6]*)
829+
(3.[5-6]*)
826830
msg "found ok version of LLVM: $LLVM_VERSION"
827831
;;
828832
(*)
829-
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
833+
err "bad LLVM version: $LLVM_VERSION, need >=3.5"
830834
;;
831835
esac
832836
fi

branches/beta/mk/cfg/x86_64-unknown-linux-gnu.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ 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/beta/mk/dist.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ PKG_FILES := \
5353
driver \
5454
etc \
5555
$(foreach crate,$(CRATES),lib$(crate)) \
56+
libcollectionstest \
5657
libcoretest \
5758
libbacktrace \
5859
rt \

branches/beta/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_LOCATION_$(1) = $$(shell $$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
48-
-print-file-name=libstdc++.a)
47+
LLVM_STDCPP_RUSTFLAGS_$(1) = -L "$$(dir $$(shell $$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
48+
-print-file-name=libstdc++.a))"
4949
else
50-
LLVM_STDCPP_LOCATION_$(1) =
50+
LLVM_STDCPP_RUSTFLAGS_$(1) =
5151
endif
5252

5353

branches/beta/mk/main.mk

Lines changed: 4 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)
@@ -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
133+
CFG_RUSTC_FLAGS += --cfg debug -C debug-assertions=on
134134
endif
135135

136136
ifdef SAVE_TEMPS
@@ -290,6 +290,7 @@ 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))"
293294
LLVM_LIBS_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --libs $$(LLVM_COMPONENTS))
294295
LLVM_LDFLAGS_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --ldflags)
295296
# On FreeBSD, it may search wrong headers (that are for pre-installed LLVM),

branches/beta/mk/prepare.mk

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

222222

223223
endef
224-
225-

branches/beta/mk/target.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ $$(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)) \
7576
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
7677
| $$(TLIB$(1)_T_$(2)_H_$(3))/
7778
@$$(call E, rustc: $$(@D)/lib$(4))
@@ -84,8 +85,8 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
8485
$$(subst @,,$$(STAGE$(1)_T_$(2)_H_$(3))) \
8586
$$(RUST_LIB_FLAGS_ST$(1)) \
8687
-L "$$(RT_OUTPUT_DIR_$(2))" \
87-
-L "$$(LLVM_LIBDIR_$(2))" \
88-
-L "$$(dir $$(LLVM_STDCPP_LOCATION_$(2)))" \
88+
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
89+
$$(LLVM_STDCPP_RUSTFLAGS_$(2)) \
8990
$$(RUSTFLAGS_$(4)) \
9091
--out-dir $$(@D) \
9192
-C extra-filename=-$$(CFG_FILENAME_EXTRA) \

branches/beta/mk/tests.mk

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

22-
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) coretest
22+
DEPS_collectionstest :=
23+
$(eval $(call RUST_CRATE,collectionstest))
24+
25+
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) collectionstest coretest
2326
TEST_DOC_CRATES = $(DOC_CRATES)
2427
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve rustc_trans rustc_lint,\
2528
$(HOST_CRATES))
@@ -372,7 +375,7 @@ $(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2)): \
372375
$(Q)CFG_LLVM_LINKAGE_FILE=$$(LLVM_LINKAGE_PATH_$(3)) \
373376
$$(subst @,,$$(STAGE$(1)_T_$(2)_H_$(3))) -o $$@ $$< --test \
374377
-L "$$(RT_OUTPUT_DIR_$(2))" \
375-
-L "$$(LLVM_LIBDIR_$(2))" \
378+
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
376379
$$(RUSTFLAGS_$(4))
377380

378381
endef
@@ -590,7 +593,7 @@ TEST_SREQ$(1)_T_$(2)_H_$(3) = \
590593

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

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

branches/beta/mk/util.mk

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

1919
S := $(CFG_SRC_DIR)
20-

branches/beta/src/compiletest/compiletest.rs

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

2824
#![deny(warnings)]
@@ -35,7 +31,6 @@ extern crate log;
3531

3632
use std::env;
3733
use std::fs;
38-
use std::old_io;
3934
use std::path::{Path, PathBuf};
4035
use std::thunk::Thunk;
4136
use getopts::{optopt, optflag, reqopt};
@@ -247,7 +242,11 @@ pub fn run_tests(config: &Config) {
247242
// sadly osx needs some file descriptor limits raised for running tests in
248243
// parallel (especially when we have lots and lots of child processes).
249244
// For context, see #8904
250-
old_io::test::raise_fd_limit();
245+
#[allow(deprecated)]
246+
fn raise_fd_limit() {
247+
std::old_io::test::raise_fd_limit();
248+
}
249+
raise_fd_limit();
251250
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
252251
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
253252
env::set_var("__COMPAT_LAYER", "RunAsInvoker");

branches/beta/src/compiletest/procsrv.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
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+
1113
use std::process::{ExitStatus, Command, Child, Output, Stdio};
1214
use std::io::prelude::*;
1315
use std::dynamic_lib::DynamicLibrary;

branches/beta/src/compiletest/runtest.rs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ 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;
3029
use std::path::{Path, PathBuf};
3130
use std::process::{Command, Output, ExitStatus};
3231
use std::str;
@@ -452,7 +451,11 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
452451
.expect(&format!("failed to exec `{:?}`", config.adb_path));
453452
loop {
454453
//waiting 1 second for gdbserver start
455-
timer::sleep(Duration::milliseconds(1000));
454+
#[allow(deprecated)]
455+
fn sleep() {
456+
::std::old_io::timer::sleep(Duration::milliseconds(1000));
457+
}
458+
sleep();
456459
if TcpStream::connect("127.0.0.1:5039").is_ok() {
457460
break
458461
}
@@ -1049,22 +1052,22 @@ fn scan_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
10491052
if *idx >= haystack.len() {
10501053
return false;
10511054
}
1052-
let range = haystack.char_range_at(*idx);
1053-
if range.ch != needle {
1055+
let ch = haystack.char_at(*idx);
1056+
if ch != needle {
10541057
return false;
10551058
}
1056-
*idx = range.next;
1059+
*idx += ch.len_utf8();
10571060
return true;
10581061
}
10591062

10601063
fn scan_integer(haystack: &str, idx: &mut uint) -> bool {
10611064
let mut i = *idx;
10621065
while i < haystack.len() {
1063-
let range = haystack.char_range_at(i);
1064-
if range.ch < '0' || '9' < range.ch {
1066+
let ch = haystack.char_at(i);
1067+
if ch < '0' || '9' < ch {
10651068
break;
10661069
}
1067-
i = range.next;
1070+
i += ch.len_utf8();
10681071
}
10691072
if i == *idx {
10701073
return false;
@@ -1080,9 +1083,9 @@ fn scan_string(haystack: &str, needle: &str, idx: &mut uint) -> bool {
10801083
if haystack_i >= haystack.len() {
10811084
return false;
10821085
}
1083-
let range = haystack.char_range_at(haystack_i);
1084-
haystack_i = range.next;
1085-
if !scan_char(needle, range.ch, &mut needle_i) {
1086+
let ch = haystack.char_at(haystack_i);
1087+
haystack_i += ch.len_utf8();
1088+
if !scan_char(needle, ch, &mut needle_i) {
10861089
return false;
10871090
}
10881091
}

0 commit comments

Comments
 (0)