Skip to content

Commit 788c04c

Browse files
committed
---
yaml --- r: 179115 b: refs/heads/auto c: a9583d6 h: refs/heads/master i: 179113: 507db77 179111: de78d27 v: v3
1 parent fab31ee commit 788c04c

File tree

848 files changed

+6656
-14894
lines changed

Some content is hidden

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

848 files changed

+6656
-14894
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 0b56e9b1cb2fc00d7d9bc044e2a78b8fb12f2f1b
13+
refs/heads/auto: a9583d62365c144e55f6c8ae49e30193c41c4268
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/COPYRIGHT

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ The following third party packages are included, and carry
2323
their own copyright notices and license terms:
2424

2525
* Two header files that are part of the Valgrind
26-
package. These files are found at src/rt/valgrind/valgrind.h and
27-
src/rt/valgrind/memcheck.h, within this distribution. These files
26+
package. These files are found at src/rt/vg/valgrind.h and
27+
src/rt/vg/memcheck.h, within this distribution. These files
2828
are redistributed under the following terms, as noted in
2929
them:
3030

31-
for src/rt/valgrind/valgrind.h:
31+
for src/rt/vg/valgrind.h:
3232

3333
This file is part of Valgrind, a dynamic binary
3434
instrumentation framework.
@@ -74,7 +74,7 @@ their own copyright notices and license terms:
7474
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
7575
OF SUCH DAMAGE.
7676

77-
for src/rt/valgrind/memcheck.h:
77+
for src/rt/vg/memcheck.h:
7878

7979
This file is part of MemCheck, a heavyweight Valgrind
8080
tool for detecting memory errors.
@@ -120,6 +120,18 @@ their own copyright notices and license terms:
120120
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
121121
OF SUCH DAMAGE.
122122

123+
* The auxiliary file src/etc/pkg/modpath.iss contains a
124+
library routine compiled, by Inno Setup, into the Windows
125+
installer binary. This file is licensed under the LGPL,
126+
version 3, but, in our legal interpretation, this does not
127+
affect the aggregate "collected work" license of the Rust
128+
distribution (MIT/ASL2) nor any other components of it. We
129+
believe that the terms governing distribution of the
130+
binary Windows installer built from modpath.iss are
131+
therefore LGPL, but not the terms governing distribution
132+
of any of the files installed by such an installer (such
133+
as the Rust compiler or runtime libraries themselves).
134+
123135
* The src/rt/miniz.c file, carrying an implementation of
124136
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
125137
<[email protected]>. All uses of this file are

branches/auto/Makefile.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
# * check-stage$(stage)-$(crate) - Test a crate in a specific stage
6060
# * check-stage$(stage)-{rpass,rfail,cfail,rmake,...} - Run tests in src/test/
6161
# * check-stage1-T-$(target)-H-$(host) - Run cross-compiled-tests
62-
# * tidy-basic - show file / line stats
63-
# * tidy-errors - show the highest rustc error code
64-
# * tidy-features - show the status of language and lib features
6562
#
6663
# Then mix in some of these environment variables to harness the
6764
# ultimate power of The Rust Build System.

branches/auto/configure

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,6 @@ case $CFG_OSTYPE in
374374
CFG_OSTYPE=unknown-dragonfly
375375
;;
376376

377-
OpenBSD)
378-
CFG_OSTYPE=unknown-openbsd
379-
;;
380-
381377
Darwin)
382378
CFG_OSTYPE=apple-darwin
383379
;;

branches/auto/man/rustc.1

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,10 @@ Display the help message
1818
\fB\-\-cfg\fR SPEC
1919
Configure the compilation environment
2020
.TP
21-
\fB\-L\fR [KIND=]PATH
22-
Add a directory to the library search path. The optional KIND can be one of:
23-
dependency = only lookup transitive dependencies here
24-
crate = only lookup local `extern crate` directives here
25-
native = only lookup native libraries here
26-
framework = only look for OSX frameworks here
27-
all = look for anything here (the default)
28-
.TP
29-
\fB\-l\fR [KIND=]NAME
21+
\fB\-L\fR PATH
22+
Add a directory to the library search path
23+
.TP
24+
\fB\-l\fR NAME[:KIND]
3025
Link the generated crate(s) to the specified native library NAME. The optional
3126
KIND can be one of, static, dylib, or framework. If omitted, dylib is assumed.
3227
.TP

branches/auto/mk/cfg/x86_64-unknown-openbsd.mk

Lines changed: 0 additions & 26 deletions
This file was deleted.

branches/auto/mk/main.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ endif
7272
# numbers and dots here
7373
CFG_VERSION_WIN = $(CFG_RELEASE_NUM)
7474

75-
CFG_INFO := $(info cfg: version $(CFG_VERSION))
7675

7776
######################################################################
7877
# More configuration
@@ -180,7 +179,6 @@ endif
180179

181180
ifndef CFG_DISABLE_VALGRIND_RPASS
182181
$(info cfg: enabling valgrind run-pass tests (CFG_ENABLE_VALGRIND_RPASS))
183-
$(info cfg: valgrind-rpass command set to $(CFG_VALGRIND))
184182
CFG_VALGRIND_RPASS :=$(CFG_VALGRIND)
185183
else
186184
CFG_VALGRIND_RPASS :=

branches/auto/mk/tests.mk

Lines changed: 51 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ $(foreach file,$(wildcard $(S)src/doc/trpl/*.md), \
162162
######################################################################
163163

164164
# The main testing target. Tests lots of stuff.
165-
check: cleantmptestlogs cleantestlibs all check-stage2 tidy
166-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
165+
check: cleantmptestlogs cleantestlibs check-notidy tidy
167166

168167
# As above but don't bother running tidy.
169168
check-notidy: cleantmptestlogs cleantestlibs all check-stage2
@@ -236,24 +235,57 @@ cleantestlibs:
236235
######################################################################
237236

238237
ifdef CFG_NOTIDY
239-
.PHONY: tidy
240238
tidy:
241239
else
242240

243-
# Run the tidy script in multiple parts to avoid huge 'echo' commands
244-
.PHONY: tidy
245-
tidy: tidy-basic tidy-binaries tidy-errors tidy-features
246-
247-
endif
241+
ALL_CS := $(wildcard $(S)src/rt/*.cpp \
242+
$(S)src/rt/*/*.cpp \
243+
$(S)src/rt/*/*/*.cpp \
244+
$(S)src/rustllvm/*.cpp)
245+
ALL_CS := $(filter-out $(S)src/rt/miniz.cpp \
246+
$(wildcard $(S)src/rt/hoedown/src/*.c) \
247+
$(wildcard $(S)src/rt/hoedown/bin/*.c) \
248+
,$(ALL_CS))
249+
ALL_HS := $(wildcard $(S)src/rt/*.h \
250+
$(S)src/rt/*/*.h \
251+
$(S)src/rt/*/*/*.h \
252+
$(S)src/rustllvm/*.h)
253+
ALL_HS := $(filter-out $(S)src/rt/valgrind/valgrind.h \
254+
$(S)src/rt/valgrind/memcheck.h \
255+
$(S)src/rt/msvc/typeof.h \
256+
$(S)src/rt/msvc/stdint.h \
257+
$(S)src/rt/msvc/inttypes.h \
258+
$(wildcard $(S)src/rt/hoedown/src/*.h) \
259+
$(wildcard $(S)src/rt/hoedown/bin/*.h) \
260+
,$(ALL_HS))
248261

249-
.PHONY: tidy-basic
250-
tidy-basic:
262+
# Run the tidy script in multiple parts to avoid huge 'echo' commands
263+
tidy:
251264
@$(call E, check: formatting)
252-
$(Q) $(CFG_PYTHON) $(S)src/etc/tidy.py $(S)src/
253-
254-
.PHONY: tidy-binaries
255-
tidy-binaries:
256-
@$(call E, check: binaries)
265+
$(Q)find $(S)src -name '*.r[sc]' \
266+
-and -not -regex '^$(S)src/jemalloc.*' \
267+
-and -not -regex '^$(S)src/libuv.*' \
268+
-and -not -regex '^$(S)src/llvm.*' \
269+
-and -not -regex '^$(S)src/gyp.*' \
270+
-and -not -regex '^$(S)src/libbacktrace.*' \
271+
-print0 \
272+
| xargs -0 -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
273+
$(Q)find $(S)src/etc -name '*.py' \
274+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
275+
$(Q)find $(S)src/doc -name '*.js' \
276+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
277+
$(Q)find $(S)src/etc -name '*.sh' \
278+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
279+
$(Q)find $(S)src/etc -name '*.pl' \
280+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
281+
$(Q)find $(S)src/etc -name '*.c' \
282+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
283+
$(Q)find $(S)src/etc -name '*.h' \
284+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
285+
$(Q)echo $(ALL_CS) \
286+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
287+
$(Q)echo $(ALL_HS) \
288+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
257289
$(Q)find $(S)src -type f -perm +a+x \
258290
-not -name '*.rs' -and -not -name '*.py' \
259291
-and -not -name '*.sh' \
@@ -268,18 +300,13 @@ tidy-binaries:
268300
| grep '^$(S)src/libbacktrace' -v \
269301
| grep '^$(S)src/rust-installer' -v \
270302
| xargs $(CFG_PYTHON) $(S)src/etc/check-binaries.py
271-
272-
.PHONY: tidy-errors
273-
tidy-errors:
274-
@$(call E, check: extended errors)
275303
$(Q) $(CFG_PYTHON) $(S)src/etc/errorck.py $(S)src/
276-
277-
.PHONY: tidy-features
278-
tidy-features:
279-
@$(call E, check: feature sanity)
280304
$(Q) $(CFG_PYTHON) $(S)src/etc/featureck.py $(S)src/
281305

282306

307+
endif
308+
309+
283310
######################################################################
284311
# Sets of tests
285312
######################################################################
@@ -612,6 +639,7 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
612639

613640
ifdef CFG_VALGRIND_RPASS
614641
ifdef GOOD_VALGRIND_$(2)
642+
$(info cfg: valgrind-path set to $(CFG_VALGRIND_RPASS))
615643
CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) += --valgrind-path "$(CFG_VALGRIND_RPASS)"
616644
endif
617645
endif

branches/auto/src/compiletest/compiletest.rs

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#![feature(std_misc)]
2323
#![feature(test)]
2424
#![feature(unicode)]
25-
#![feature(env)]
2625

2726
#![deny(warnings)]
2827

@@ -32,7 +31,7 @@ extern crate getopts;
3231
#[macro_use]
3332
extern crate log;
3433

35-
use std::env;
34+
use std::os;
3635
use std::old_io;
3736
use std::old_io::fs;
3837
use std::thunk::Thunk;
@@ -49,7 +48,7 @@ pub mod common;
4948
pub mod errors;
5049

5150
pub fn main() {
52-
let args = env::args().map(|s| s.into_string().unwrap()).collect();;
51+
let args = os::args();
5352
let config = parse_config(args);
5453

5554
if config.valgrind_path.is_none() && config.force_valgrind {
@@ -97,22 +96,22 @@ pub fn parse_config(args: Vec<String> ) -> Config {
9796
assert!(!args.is_empty());
9897
let argv0 = args[0].clone();
9998
let args_ = args.tail();
100-
if args[1] == "-h" || args[1] == "--help" {
99+
if args[1].as_slice() == "-h" || args[1].as_slice() == "--help" {
101100
let message = format!("Usage: {} [OPTIONS] [TESTNAME...]", argv0);
102-
println!("{}", getopts::usage(&message, &groups));
101+
println!("{}", getopts::usage(message.as_slice(), groups.as_slice()));
103102
println!("");
104103
panic!()
105104
}
106105

107106
let matches =
108-
&match getopts::getopts(args_, &groups) {
107+
&match getopts::getopts(args_.as_slice(), groups.as_slice()) {
109108
Ok(m) => m,
110109
Err(f) => panic!("{:?}", f)
111110
};
112111

113112
if matches.opt_present("h") || matches.opt_present("help") {
114113
let message = format!("Usage: {} [OPTIONS] [TESTNAME...]", argv0);
115-
println!("{}", getopts::usage(&message, &groups));
114+
println!("{}", getopts::usage(message.as_slice(), groups.as_slice()));
116115
println!("");
117116
panic!()
118117
}
@@ -156,9 +155,9 @@ pub fn parse_config(args: Vec<String> ) -> Config {
156155
adb_test_dir: opt_str2(matches.opt_str("adb-test-dir")),
157156
adb_device_status:
158157
"arm-linux-androideabi" ==
159-
opt_str2(matches.opt_str("target")) &&
158+
opt_str2(matches.opt_str("target")).as_slice() &&
160159
"(none)" !=
161-
opt_str2(matches.opt_str("adb-test-dir")) &&
160+
opt_str2(matches.opt_str("adb-test-dir")).as_slice() &&
162161
!opt_str2(matches.opt_str("adb-test-dir")).is_empty(),
163162
lldb_python_dir: matches.opt_str("lldb-python-dir"),
164163
verbose: matches.opt_present("verbose"),
@@ -201,7 +200,7 @@ pub fn log_config(config: &Config) {
201200
pub fn opt_str<'a>(maybestr: &'a Option<String>) -> &'a str {
202201
match *maybestr {
203202
None => "(none)",
204-
Some(ref s) => s,
203+
Some(ref s) => s.as_slice(),
205204
}
206205
}
207206

@@ -213,7 +212,7 @@ pub fn opt_str2(maybestr: Option<String>) -> String {
213212
}
214213

215214
pub fn run_tests(config: &Config) {
216-
if config.target == "arm-linux-androideabi" {
215+
if config.target.as_slice() == "arm-linux-androideabi" {
217216
match config.mode {
218217
DebugInfoGdb => {
219218
println!("arm-linux-androideabi debug-info \
@@ -225,15 +224,15 @@ pub fn run_tests(config: &Config) {
225224
//arm-linux-androideabi debug-info test uses remote debugger
226225
//so, we test 1 task at once.
227226
// also trying to isolate problems with adb_run_wrapper.sh ilooping
228-
env::set_var("RUST_TEST_TASKS","1");
227+
os::setenv("RUST_TEST_TASKS","1");
229228
}
230229

231230
match config.mode {
232231
DebugInfoLldb => {
233232
// Some older versions of LLDB seem to have problems with multiple
234233
// instances running in parallel, so only run one test task at a
235234
// time.
236-
env::set_var("RUST_TEST_TASKS", "1");
235+
os::setenv("RUST_TEST_TASKS", "1");
237236
}
238237
_ => { /* proceed */ }
239238
}
@@ -246,7 +245,7 @@ pub fn run_tests(config: &Config) {
246245
old_io::test::raise_fd_limit();
247246
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
248247
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
249-
env::set_var("__COMPAT_LAYER", "RunAsInvoker");
248+
os::setenv("__COMPAT_LAYER", "RunAsInvoker");
250249
let res = test::run_tests_console(&opts, tests.into_iter().collect());
251250
match res {
252251
Ok(true) => {}
@@ -277,7 +276,7 @@ pub fn make_tests(config: &Config) -> Vec<test::TestDescAndFn> {
277276
config.src_base.display());
278277
let mut tests = Vec::new();
279278
let dirs = fs::readdir(&config.src_base).unwrap();
280-
for file in &dirs {
279+
for file in dirs.iter() {
281280
let file = file.clone();
282281
debug!("inspecting file {:?}", file.display());
283282
if is_test(config, &file) {
@@ -305,14 +304,14 @@ pub fn is_test(config: &Config, testfile: &Path) -> bool {
305304

306305
let mut valid = false;
307306

308-
for ext in &valid_extensions {
309-
if name.ends_with(ext) {
307+
for ext in valid_extensions.iter() {
308+
if name.ends_with(ext.as_slice()) {
310309
valid = true;
311310
}
312311
}
313312

314-
for pre in &invalid_prefixes {
315-
if name.starts_with(pre) {
313+
for pre in invalid_prefixes.iter() {
314+
if name.starts_with(pre.as_slice()) {
316315
valid = false;
317316
}
318317
}
@@ -359,7 +358,7 @@ pub fn make_metrics_test_closure(config: &Config, testfile: &Path) -> test::Test
359358
let config = (*config).clone();
360359
// FIXME (#9639): This needs to handle non-utf8 paths
361360
let testfile = testfile.as_str().unwrap().to_string();
362-
test::DynMetricFn(box move |mm: &mut test::MetricMap| {
361+
test::DynMetricFn(box move |: mm: &mut test::MetricMap| {
363362
runtest::run_metrics(config, testfile, mm)
364363
})
365364
}

0 commit comments

Comments
 (0)