Skip to content

Commit 543415f

Browse files
committed
---
yaml --- r: 234342 b: refs/heads/tmp c: 04c09f9 h: refs/heads/master v: v3
1 parent 9cd1a3e commit 543415f

File tree

360 files changed

+7077
-26261
lines changed

Some content is hidden

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

360 files changed

+7077
-26261
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: b4de424e4175eefb4fda6e3ed634acfab3ec0daf
28+
refs/heads/tmp: 04c09f9466c57dca50c643c6099c0f9957d62220
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/.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sudo: false
2020
before_script:
2121
- ./configure --enable-ccache
2222
script:
23-
- make tidy && make check -j4
23+
- make tidy check -j4
2424

2525
env:
2626
- CXX=/usr/bin/g++-4.7

branches/tmp/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ Read ["Installing Rust"] from [The Book].
6565
tools.
6666
6767
```sh
68-
# Update package mirrors (may be needed if you have a fresh install of MSYS2)
69-
$ pacman -Sy pacman-mirrors
70-
7168
# Choose one based on platform:
7269
$ pacman -S mingw-w64-i686-toolchain
7370
$ pacman -S mingw-w64-x86_64-toolchain

branches/tmp/mk/crates.mk

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ TARGET_CRATES := libc std flate arena term \
5656
alloc_system
5757
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

@@ -71,24 +71,23 @@ 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 \
7373
rustc_typeck rustc_resolve log syntax serialize rustc_llvm \
74-
rustc_trans rustc_privacy rustc_lint rustc_front
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_typeck := rustc syntax rustc_front rustc_platform_intrinsics
79-
DEPS_rustc_borrowck := rustc rustc_front log graphviz syntax
80-
DEPS_rustc_resolve := rustc rustc_front log syntax
81-
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
8282
DEPS_rustc_lint := rustc log syntax
8383
DEPS_rustc := syntax flate arena serialize getopts rbml \
8484
log graphviz rustc_llvm rustc_back rustc_data_structures
8585
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
8686
DEPS_rustc_platform_intrinsics := rustc rustc_llvm
87-
DEPS_rustc_back := std syntax rustc_llvm rustc_front flate log libc
88-
DEPS_rustc_front := std syntax log serialize
87+
DEPS_rustc_back := std syntax rustc_llvm flate log libc
8988
DEPS_rustc_data_structures := std log serialize
9089
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
91-
test rustc_lint rustc_front
90+
test rustc_lint
9291
DEPS_rustc_bitflags := core
9392
DEPS_flate := std native:miniz
9493
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/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/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)