Skip to content

Commit 138db6f

Browse files
committed
---
yaml --- r: 234429 b: refs/heads/tmp c: 5cb6b3e h: refs/heads/master i: 234427: f1effc3 v: v3
1 parent cb38dca commit 138db6f

File tree

410 files changed

+7602
-33717
lines changed

Some content is hidden

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

410 files changed

+7602
-33717
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: d2e13e822a73e0ea46ae9e21afdd3155fc997f6d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 474ad2fc72735a5f12f1b9d92bf32ffc38547e0a
28+
refs/heads/tmp: 5cb6b3eb531487896b38df019f3f6a9055fbe494
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: ab792abf1fcc28afbd315426213f6428da25c085
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/RELEASES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 1.2.0 (2015-08-07)
1+
Version 1.2.0 (August 2015)
22
===========================
33

44
* ~1200 changes, numerous bugfixes
@@ -156,7 +156,7 @@ Misc
156156
[ad]: https://github.com/rust-lang/rust/pull/27382
157157
[win]: https://github.com/rust-lang/rust/pull/25350
158158

159-
Version 1.1.0 (2015-06-25)
159+
Version 1.1.0 (June 2015)
160160
=========================
161161

162162
* ~850 changes, numerous bugfixes
@@ -267,7 +267,7 @@ Misc
267267
[`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
268268
[drop]: https://github.com/rust-lang/rust/pull/24935
269269

270-
Version 1.0.0 (2015-05-15)
270+
Version 1.0.0 (May 2015)
271271
========================
272272

273273
* ~1500 changes, numerous bugfixes

branches/tmp/configure

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,27 +1180,16 @@ do
11801180
# MSVC requires cmake because that's how we're going to build LLVM
11811181
probe_need CFG_CMAKE cmake
11821182

1183-
# There are three builds of cmake on windows: MSVC, MinGW and Cygwin
1184-
# The Cygwin build does not have generators for Visual Studio, so
1185-
# detect that here and error.
1186-
if ! "$CFG_CMAKE" --help | sed -n '/^Generators/,$p' | grep 'Visual Studio' > /dev/null
1187-
then
1188-
err "cmake does not support Visual Studio generators.\n\n \
1189-
This is likely due to it being an msys/cygwin build of cmake, \
1190-
rather than the required windows version, built using MinGW \
1191-
or Visual Studio."
1192-
fi
1193-
11941183
# Use the REG program to figure out where VS is installed
11951184
# We need to figure out where cl.exe and link.exe are, so we do some
11961185
# munging and some probing here. We also look for the default
11971186
# INCLUDE and LIB variables for MSVC so we can set those in the
11981187
# build system as well.
1199-
install=$(cmd //c reg QUERY \
1188+
install=$(reg QUERY \
12001189
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0' \
12011190
-v InstallDir)
12021191
if [ -z "$install" ]; then
1203-
install=$(cmd //c reg QUERY \
1192+
install=$(reg QUERY \
12041193
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
12051194
-v InstallDir)
12061195
fi
@@ -1233,9 +1222,9 @@ do
12331222
eval CFG_MSVC_LINK_$bits="\"$bindir/link.exe\""
12341223

12351224
vcvarsall="${CFG_MSVC_ROOT}/VC/vcvarsall.bat"
1236-
include_path=$(cmd //V:ON //c "$vcvarsall" $msvc_part \& echo !INCLUDE!)
1225+
include_path=$(cmd /c "\"$vcvarsall\" $msvc_part && cmd /c echo %INCLUDE%")
12371226
need_ok "failed to learn about MSVC's INCLUDE"
1238-
lib_path=$(cmd //V:ON //c "$vcvarsall" $msvc_part \& echo !LIB!)
1227+
lib_path=$(cmd /c "\"$vcvarsall\" $msvc_part && cmd /c echo %LIB%")
12391228
need_ok "failed to learn about MSVC's LIB"
12401229

12411230
eval CFG_MSVC_INCLUDE_PATH_${bits}="\"$include_path\""

branches/tmp/mk/crates.mk

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ TARGET_CRATES := libc std flate arena term \
5454
log graphviz core rbml alloc \
5555
rustc_unicode rustc_bitflags \
5656
alloc_system
57-
RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_driver \
57+
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
59-
rustc_data_structures rustc_front rustc_platform_intrinsics
59+
rustc_data_structures rustc_platform_intrinsics
6060
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
6161
TOOLS := compiletest rustdoc rustc rustbook error-index-generator
6262

@@ -70,26 +70,24 @@ DEPS_std := core libc rand alloc collections rustc_unicode \
7070
DEPS_graphviz := std
7171
DEPS_syntax := std term serialize log fmt_macros arena libc rustc_bitflags
7272
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
73-
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
74-
rustc_trans rustc_privacy rustc_lint rustc_front
73+
rustc_typeck rustc_resolve log syntax serialize rustc_llvm \
74+
rustc_trans rustc_privacy rustc_lint
7575

7676
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
77-
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics
78-
DEPS_rustc_mir := rustc rustc_front syntax
79-
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics
80-
DEPS_rustc_borrowck := rustc rustc_front log graphviz syntax
81-
DEPS_rustc_resolve := rustc rustc_front log syntax
82-
DEPS_rustc_privacy := rustc rustc_front log syntax
77+
log syntax serialize rustc_llvm rustc_platform_intrinsics
78+
DEPS_rustc_typeck := rustc syntax rustc_platform_intrinsics
79+
DEPS_rustc_borrowck := rustc log graphviz syntax
80+
DEPS_rustc_resolve := rustc log syntax
81+
DEPS_rustc_privacy := rustc log syntax
8382
DEPS_rustc_lint := rustc log syntax
8483
DEPS_rustc := syntax flate arena serialize getopts rbml \
8584
log graphviz rustc_llvm rustc_back rustc_data_structures
8685
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
8786
DEPS_rustc_platform_intrinsics := rustc rustc_llvm
88-
DEPS_rustc_back := std syntax rustc_llvm rustc_front flate log libc
89-
DEPS_rustc_front := std syntax log serialize
87+
DEPS_rustc_back := std syntax rustc_llvm flate log libc
9088
DEPS_rustc_data_structures := std log serialize
9189
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
92-
test rustc_lint rustc_front
90+
test rustc_lint
9391
DEPS_rustc_bitflags := core
9492
DEPS_flate := std native:miniz
9593
DEPS_arena := std

branches/tmp/mk/docs.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ ifdef CFG_DISABLE_DOCS
191191
endif
192192

193193
docs: $(DOC_TARGETS)
194-
doc: docs
195194
compiler-docs: $(COMPILER_DOC_TARGETS)
196195

197196
trpl: doc/book/index.html

branches/tmp/mk/main.mk

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,6 @@ RUST_LIB_FLAGS_ST3 += -C prefer-dynamic
172172
# by not emitting them.
173173
RUSTFLAGS_STAGE0 += -Z no-landing-pads
174174

175-
# Enable MIR to "always build" for crates where this works. This is
176-
# just temporary while MIR is being actively built up -- it's just a
177-
# poor man's unit testing infrastructure. Anyway we only want this for
178-
# stage1/stage2.
179-
define ADD_MIR_FLAG
180-
RUSTFLAGS1_$(1) += -Z always-build-mir
181-
RUSTFLAGS2_$(1) += -Z always-build-mir
182-
endef
183-
$(foreach crate,$(TARGET_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
184-
$(foreach crate,$(RUSTC_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
185-
$(foreach crate,$(HOST_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
186-
187175
# platform-specific auto-configuration
188176
include $(CFG_SRC_DIR)mk/platform.mk
189177

branches/tmp/mk/rt.mk

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,8 @@ BACKTRACE_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),backtrace)
259259
BACKTRACE_LIB_$(1) := $$(RT_OUTPUT_DIR_$(1))/$$(BACKTRACE_NAME_$(1))
260260
BACKTRACE_BUILD_DIR_$(1) := $$(RT_OUTPUT_DIR_$(1))/libbacktrace
261261

262-
# We don't use this on platforms that aren't linux-based (with the exception of
263-
# msys2/mingw builds on windows, which use it to read the dwarf debug
264-
# information) so just make the file available, the compilation of libstd won't
265-
# actually build it.
262+
# We don't use this on platforms that aren't linux-based, so just make the file
263+
# available, the compilation of libstd won't actually build it.
266264
ifeq ($$(findstring darwin,$$(OSTYPE_$(1))),darwin)
267265
# See comment above
268266
$$(BACKTRACE_LIB_$(1)):
@@ -275,7 +273,7 @@ $$(BACKTRACE_LIB_$(1)):
275273
touch $$@
276274
else
277275

278-
ifeq ($$(findstring msvc,$(1)),msvc)
276+
ifeq ($$(CFG_WINDOWSY_$(1)),1)
279277
# See comment above
280278
$$(BACKTRACE_LIB_$(1)):
281279
touch $$@
@@ -298,25 +296,16 @@ endif
298296
# ./configure script. This is done to force libbacktrace to *not* use the
299297
# atomic/sync functionality because it pulls in unnecessary dependencies and we
300298
# never use it anyway.
301-
#
302-
# We also use `env PWD=` to clear the PWD environment variable, and then
303-
# execute the command in a new shell. This is necessary to workaround a
304-
# buildbot/msys2 bug: the shell is launched with PWD set to a windows-style path,
305-
# which results in all further uses of `pwd` also printing a windows-style path,
306-
# which breaks libbacktrace's configure script. Clearing PWD within the same
307-
# shell is not sufficient.
308-
309299
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: $$(BACKTRACE_DEPS) $$(MKFILE_DEPS)
310300
@$$(call E, configure: libbacktrace for $(1))
311301
$$(Q)rm -rf $$(BACKTRACE_BUILD_DIR_$(1))
312302
$$(Q)mkdir -p $$(BACKTRACE_BUILD_DIR_$(1))
313-
$$(Q)(cd $$(BACKTRACE_BUILD_DIR_$(1)) && env \
314-
PWD= \
303+
$$(Q)(cd $$(BACKTRACE_BUILD_DIR_$(1)) && \
315304
CC="$$(CC_$(1))" \
316305
AR="$$(AR_$(1))" \
317306
RANLIB="$$(AR_$(1)) s" \
318307
CFLAGS="$$(CFG_GCCISH_CFLAGS_$(1):-Werror=) -fno-stack-protector" \
319-
$(S)src/libbacktrace/configure --build=$(CFG_GNU_TRIPLE_$(CFG_BUILD)) --host=$(CFG_GNU_TRIPLE_$(1)))
308+
$(S)src/libbacktrace/configure --target=$(1) --host=$(CFG_BUILD))
320309
$$(Q)echo '#undef HAVE_ATOMIC_FUNCTIONS' >> \
321310
$$(BACKTRACE_BUILD_DIR_$(1))/config.h
322311
$$(Q)echo '#undef HAVE_SYNC_FUNCTIONS' >> \
@@ -328,7 +317,7 @@ $$(BACKTRACE_LIB_$(1)): $$(BACKTRACE_BUILD_DIR_$(1))/Makefile $$(MKFILE_DEPS)
328317
INCDIR=$(S)src/libbacktrace
329318
$$(Q)cp $$(BACKTRACE_BUILD_DIR_$(1))/.libs/libbacktrace.a $$@
330319

331-
endif # endif for msvc
320+
endif # endif for windowsy
332321
endif # endif for ios
333322
endif # endif for darwin
334323

branches/tmp/mk/target.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
9393
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
9494
$$(LLVM_STDCPP_RUSTFLAGS_$(2)) \
9595
$$(RUSTFLAGS_$(4)) \
96-
$$(RUSTFLAGS$(1)_$(4)) \
9796
$$(RUSTFLAGS$(1)_$(4)_T_$(2)) \
9897
--out-dir $$(@D) \
9998
-C extra-filename=-$$(CFG_FILENAME_EXTRA) \

branches/tmp/src/compiletest/compiletest.rs

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub fn log_config(config: &Config) {
178178
logv(c, format!("filter: {}",
179179
opt_str(&config.filter
180180
.as_ref()
181-
.map(|re| re.to_owned()))));
181+
.map(|re| re.to_string()))));
182182
logv(c, format!("runtool: {}", opt_str(&config.runtool)));
183183
logv(c, format!("host-rustcflags: {}",
184184
opt_str(&config.host_rustcflags)));
@@ -205,16 +205,19 @@ pub fn opt_str<'a>(maybestr: &'a Option<String>) -> &'a str {
205205

206206
pub fn opt_str2(maybestr: Option<String>) -> String {
207207
match maybestr {
208-
None => "(none)".to_owned(),
208+
None => "(none)".to_string(),
209209
Some(s) => s,
210210
}
211211
}
212212

213213
pub fn run_tests(config: &Config) {
214214
if config.target.contains("android") {
215-
if let DebugInfoGdb = config.mode {
216-
println!("{} debug-info test uses tcp 5039 port.\
217-
please reserve it", config.target);
215+
match config.mode {
216+
DebugInfoGdb => {
217+
println!("{} debug-info test uses tcp 5039 port.\
218+
please reserve it", config.target);
219+
}
220+
_ =>{}
218221
}
219222

220223
// android debug-info test uses remote debugger
@@ -286,10 +289,10 @@ pub fn is_test(config: &Config, testfile: &Path) -> bool {
286289
// Pretty-printer does not work with .rc files yet
287290
let valid_extensions =
288291
match config.mode {
289-
Pretty => vec!(".rs".to_owned()),
290-
_ => vec!(".rc".to_owned(), ".rs".to_owned())
292+
Pretty => vec!(".rs".to_string()),
293+
_ => vec!(".rc".to_string(), ".rs".to_string())
291294
};
292-
let invalid_prefixes = vec!(".".to_owned(), "#".to_owned(), "~".to_owned());
295+
let invalid_prefixes = vec!(".".to_string(), "#".to_string(), "~".to_string());
293296
let name = testfile.file_name().unwrap().to_str().unwrap();
294297

295298
let mut valid = false;
@@ -361,7 +364,7 @@ fn extract_gdb_version(full_version_line: Option<String>) -> Option<String> {
361364
full_version_line.char_at(pos + 3).is_digit(10) {
362365
continue
363366
}
364-
return Some(full_version_line[pos..pos+3].to_owned());
367+
return Some(full_version_line[pos..pos+3].to_string());
365368
}
366369
println!("Could not extract GDB version from line '{}'",
367370
full_version_line);
@@ -383,8 +386,9 @@ fn extract_lldb_version(full_version_line: Option<String>) -> Option<String> {
383386
// We are only interested in the major version number, so this function
384387
// will return `Some("179")` and `Some("300")` respectively.
385388

386-
if let Some(ref full_version_line) = full_version_line {
387-
if !full_version_line.trim().is_empty() {
389+
match full_version_line {
390+
Some(ref full_version_line)
391+
if !full_version_line.trim().is_empty() => {
388392
let full_version_line = full_version_line.trim();
389393

390394
for (pos, l) in full_version_line.char_indices() {
@@ -406,7 +410,8 @@ fn extract_lldb_version(full_version_line: Option<String>) -> Option<String> {
406410
}
407411
println!("Could not extract LLDB version from line '{}'",
408412
full_version_line);
409-
}
413+
None
414+
},
415+
_ => None
410416
}
411-
None
412417
}

branches/tmp/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn parse_expected(last_nonfollow_error: Option<usize>,
7676
let letters = line[kind_start..].chars();
7777
let msg = letters.skip_while(|c| c.is_whitespace())
7878
.skip_while(|c| !c.is_whitespace())
79-
.collect::<String>().trim().to_owned();
79+
.collect::<String>().trim().to_string();
8080

8181
let (which, line) = if follow {
8282
assert!(adjusts == 0, "use either //~| or //~^, not both.");

0 commit comments

Comments
 (0)