Skip to content

Commit 4cbb4d5

Browse files
committed
---
yaml --- r: 148923 b: refs/heads/try2 c: 65a6c7c h: refs/heads/master i: 148921: d446335 148919: c1ea988 v: v3
1 parent b800d8a commit 4cbb4d5

File tree

278 files changed

+6661
-11025
lines changed

Some content is hidden

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

278 files changed

+6661
-11025
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 8dc06802b241ea30a8aadca1f8451a646f2bc3c0
8+
refs/heads/try2: 65a6c7c12cba28ba41c64d7e6a6d66502aeeeb52
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/crates.mk

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,22 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := std extra green rustuv native flate arena glob term semver uuid serialize sync
52+
TARGET_CRATES := std extra green rustuv native flate arena glob
5353
HOST_CRATES := syntax rustc rustdoc
5454
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5555
TOOLS := compiletest rustdoc rustc
5656

5757
DEPS_std := native:rustrt
58-
DEPS_extra := std serialize sync term
58+
DEPS_extra := std
5959
DEPS_green := std
6060
DEPS_rustuv := std native:uv native:uv_support
6161
DEPS_native := std
62-
DEPS_syntax := std extra term serialize
63-
DEPS_rustc := syntax native:rustllvm flate arena serialize sync
64-
DEPS_rustdoc := rustc native:sundown serialize sync
62+
DEPS_syntax := std extra
63+
DEPS_rustc := syntax native:rustllvm flate arena
64+
DEPS_rustdoc := rustc native:sundown
6565
DEPS_flate := std native:miniz
6666
DEPS_arena := std extra
6767
DEPS_glob := std
68-
DEPS_serialize := std
69-
DEPS_term := std
70-
DEPS_semver := std
71-
DEPS_uuid := std serialize
72-
DEPS_sync := std
7368

7469
TOOL_DEPS_compiletest := extra green rustuv
7570
TOOL_DEPS_rustdoc := rustdoc green rustuv

branches/try2/mk/tests.mk

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ check-test: cleantestlibs cleantmptestlogs all check-stage2-rfail
183183
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
184184

185185
check-lite: cleantestlibs cleantmptestlogs \
186-
$(foreach crate,$(TARGET_CRATES),check-stage2-$(crate)) \
187-
check-stage2-rpass \
186+
check-stage2-std check-stage2-extra check-stage2-rpass \
187+
check-stage2-rustuv check-stage2-native check-stage2-green \
188188
check-stage2-rfail check-stage2-cfail check-stage2-rmake
189189
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
190190

@@ -861,8 +861,7 @@ $(foreach host,$(CFG_HOST), \
861861
$(eval $(foreach target,$(CFG_TARGET), \
862862
$(eval $(call DEF_CHECK_FAST_FOR_T_H,,$(target),$(host))))))
863863

864-
check-fast: tidy check-fast-H-$(CFG_BUILD) \
865-
$(foreach crate,$(TARGET_CRATES),check-stage2-$(crate))
864+
check-fast: tidy check-fast-H-$(CFG_BUILD) check-stage2-std check-stage2-extra
866865
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
867866

868867
define DEF_CHECK_FAST_FOR_H

branches/try2/src/compiletest/compiletest.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,7 @@ pub fn run_tests(config: &config) {
234234
// For context, see #8904
235235
io::test::raise_fd_limit();
236236
let res = test::run_tests_console(&opts, tests);
237-
match res {
238-
Ok(true) => {}
239-
Ok(false) => fail!("Some tests failed"),
240-
Err(e) => {
241-
println!("I/O failure during tests: {}", e);
242-
}
243-
}
237+
if !res { fail!("Some tests failed"); }
244238
}
245239

246240
pub fn test_opts(config: &config) -> test::TestOpts {
@@ -261,7 +255,7 @@ pub fn make_tests(config: &config) -> ~[test::TestDescAndFn] {
261255
debug!("making tests from {}",
262256
config.src_base.display());
263257
let mut tests = ~[];
264-
let dirs = fs::readdir(&config.src_base).unwrap();
258+
let dirs = fs::readdir(&config.src_base);
265259
for file in dirs.iter() {
266260
let file = file.clone();
267261
debug!("inspecting file {}", file.display());

branches/try2/src/compiletest/procsrv.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ pub fn run(lib_path: &str,
5858
});
5959

6060
match opt_process {
61-
Ok(ref mut process) => {
61+
Some(ref mut process) => {
6262
for input in input.iter() {
63-
process.input().write(input.as_bytes()).unwrap();
63+
process.input().write(input.as_bytes());
6464
}
6565
let run::ProcessOutput { status, output, error } = process.finish_with_output();
6666

@@ -70,7 +70,7 @@ pub fn run(lib_path: &str,
7070
err: str::from_utf8_owned(error).unwrap()
7171
})
7272
},
73-
Err(..) => None
73+
None => None
7474
}
7575
}
7676

@@ -90,13 +90,13 @@ pub fn run_background(lib_path: &str,
9090
});
9191

9292
match opt_process {
93-
Ok(mut process) => {
93+
Some(mut process) => {
9494
for input in input.iter() {
95-
process.input().write(input.as_bytes()).unwrap();
95+
process.input().write(input.as_bytes());
9696
}
9797

9898
Some(process)
9999
},
100-
Err(..) => None
100+
None => None
101101
}
102102
}

branches/try2/src/compiletest/runtest.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fn run_pretty_test(config: &config, props: &TestProps, testfile: &Path) {
153153
let rounds =
154154
match props.pp_exact { Some(_) => 1, None => 2 };
155155

156-
let src = File::open(testfile).read_to_end().unwrap();
156+
let src = File::open(testfile).read_to_end();
157157
let src = str::from_utf8_owned(src).unwrap();
158158
let mut srcs = ~[src];
159159

@@ -175,7 +175,7 @@ fn run_pretty_test(config: &config, props: &TestProps, testfile: &Path) {
175175
let mut expected = match props.pp_exact {
176176
Some(ref file) => {
177177
let filepath = testfile.dir_path().join(file);
178-
let s = File::open(&filepath).read_to_end().unwrap();
178+
let s = File::open(&filepath).read_to_end();
179179
str::from_utf8_owned(s).unwrap()
180180
}
181181
None => { srcs[srcs.len() - 2u].clone() }
@@ -318,10 +318,8 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
318318
//waiting 1 second for gdbserver start
319319
timer::sleep(1000);
320320
let result = task::try(proc() {
321-
tcp::TcpStream::connect(SocketAddr {
322-
ip: Ipv4Addr(127, 0, 0, 1),
323-
port: 5039,
324-
}).unwrap();
321+
tcp::TcpStream::connect(
322+
SocketAddr { ip: Ipv4Addr(127, 0, 0, 1), port: 5039 });
325323
});
326324
if result.is_err() {
327325
continue;
@@ -363,7 +361,7 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
363361
stdout: out,
364362
stderr: err,
365363
cmdline: cmdline};
366-
process.force_destroy().unwrap();
364+
process.force_destroy();
367365
}
368366

369367
_=> {
@@ -729,7 +727,7 @@ fn compose_and_run_compiler(
729727

730728
fn ensure_dir(path: &Path) {
731729
if path.is_dir() { return; }
732-
fs::mkdir(path, io::UserRWX).unwrap();
730+
fs::mkdir(path, io::UserRWX);
733731
}
734732

735733
fn compose_and_run(config: &config, testfile: &Path,
@@ -854,7 +852,7 @@ fn dump_output(config: &config, testfile: &Path, out: &str, err: &str) {
854852
fn dump_output_file(config: &config, testfile: &Path,
855853
out: &str, extension: &str) {
856854
let outfile = make_out_name(config, testfile, extension);
857-
File::create(&outfile).write(out.as_bytes()).unwrap();
855+
File::create(&outfile).write(out.as_bytes());
858856
}
859857

860858
fn make_out_name(config: &config, testfile: &Path, extension: &str) -> Path {
@@ -1005,7 +1003,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
10051003
fn _arm_push_aux_shared_library(config: &config, testfile: &Path) {
10061004
let tdir = aux_output_dir_name(config, testfile);
10071005

1008-
let dirs = fs::readdir(&tdir).unwrap();
1006+
let dirs = fs::readdir(&tdir);
10091007
for file in dirs.iter() {
10101008
if file.extension_str() == Some("so") {
10111009
// FIXME (#9639): This needs to handle non-utf8 paths
@@ -1101,7 +1099,7 @@ fn disassemble_extract(config: &config, _props: &TestProps,
11011099

11021100

11031101
fn count_extracted_lines(p: &Path) -> uint {
1104-
let x = File::open(&p.with_extension("ll")).read_to_end().unwrap();
1102+
let x = File::open(&p.with_extension("ll")).read_to_end();
11051103
let x = str::from_utf8_owned(x).unwrap();
11061104
x.lines().len()
11071105
}

branches/try2/src/doc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ po4a --copyright-holder="The Rust Project Developers" \
5959
--package-name="Rust" \
6060
--package-version="0.10-pre" \
6161
-M UTF-8 -L UTF-8 \
62-
src/doc/po4a.conf
62+
po4a.conf
6363
~~~~
6464

6565
(the version number must be changed if it is not 0.10-pre now.)
@@ -73,7 +73,7 @@ When you want to make a commit, do the command below before staging your
7373
change:
7474

7575
~~~~
76-
for f in src/doc/po/**/*.po; do
76+
for f in doc/po/**/*.po; do
7777
msgattrib --translated $f -o $f.strip
7878
if [ -e $f.strip ]; then
7979
mv $f.strip $f

0 commit comments

Comments
 (0)