Skip to content

Commit bf41233

Browse files
committed
---
yaml --- r: 178415 b: refs/heads/try c: 8f38eae h: refs/heads/master i: 178413: ba5aff0 178411: 7d1e9ab 178407: 273cc8d 178399: 904ee76 v: v3
1 parent 57c8c17 commit bf41233

File tree

681 files changed

+7474
-10413
lines changed

Some content is hidden

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

681 files changed

+7474
-10413
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 336c8d2e9c6b276b162bdb3edd43706372e6eddd
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 474b324eda10440d6568ef872a7307d38e7de95b
5-
refs/heads/try: be13211b0aa7a869e649c952df21d595e35bc6a3
5+
refs/heads/try: 8f38eae7ad732350cca979d077b8eecc632230e7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/configure

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ need_ok() {
2828

2929
need_cmd() {
3030
if command -v $1 >/dev/null 2>&1
31-
then msg "found program $1"
32-
else err "need program $1"
31+
then msg "found $1"
32+
else err "need $1"
3333
fi
3434
}
3535

@@ -340,7 +340,6 @@ need_cmd date
340340
need_cmd tr
341341
need_cmd sed
342342
need_cmd file
343-
need_cmd make
344343

345344
msg "inspecting environment"
346345

branches/try/mk/main.mk

Lines changed: 2 additions & 2 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)

branches/try/mk/tests.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ tidy:
301301
| grep '^$(S)src/rust-installer' -v \
302302
| xargs $(CFG_PYTHON) $(S)src/etc/check-binaries.py
303303
$(Q) $(CFG_PYTHON) $(S)src/etc/errorck.py $(S)src/
304-
$(Q) $(CFG_PYTHON) $(S)src/etc/featureck.py $(S)src/
305304

306305

307306
endif

branches/try/src/compiletest/common.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ pub use self::Mode::*;
1212
use std::fmt;
1313
use std::str::FromStr;
1414

15-
#[cfg(stage0)] // NOTE: remove impl after snapshot
16-
#[derive(Clone, Copy, PartialEq, Show)]
15+
#[derive(Clone, PartialEq, Debug)]
1716
pub enum Mode {
1817
CompileFail,
1918
RunFail,
@@ -25,18 +24,7 @@ pub enum Mode {
2524
Codegen
2625
}
2726

28-
#[cfg(not(stage0))] // NOTE: remove cfg after snapshot
29-
#[derive(Clone, Copy, PartialEq, Debug)]
30-
pub enum Mode {
31-
CompileFail,
32-
RunFail,
33-
RunPass,
34-
RunPassValgrind,
35-
Pretty,
36-
DebugInfoGdb,
37-
DebugInfoLldb,
38-
Codegen
39-
}
27+
impl Copy for Mode {}
4028

4129
impl FromStr for Mode {
4230
fn from_str(s: &str) -> Option<Mode> {

branches/try/src/compiletest/compiletest.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@
1313
#![feature(slicing_syntax, unboxed_closures)]
1414
#![feature(box_syntax)]
1515
#![feature(int_uint)]
16-
#![feature(test)]
17-
#![feature(rustc_private)]
18-
#![feature(std_misc)]
19-
#![feature(path)]
20-
#![feature(io)]
21-
#![feature(core)]
22-
#![feature(collections)]
23-
#![feature(os)]
24-
#![feature(unicode)]
16+
#![allow(unstable)]
2517

2618
#![deny(warnings)]
2719

@@ -32,8 +24,8 @@ extern crate getopts;
3224
extern crate log;
3325

3426
use std::os;
35-
use std::old_io;
36-
use std::old_io::fs;
27+
use std::io;
28+
use std::io::fs;
3729
use std::str::FromStr;
3830
use std::thunk::Thunk;
3931
use getopts::{optopt, optflag, reqopt};
@@ -245,7 +237,7 @@ pub fn run_tests(config: &Config) {
245237
// sadly osx needs some file descriptor limits raised for running tests in
246238
// parallel (especially when we have lots and lots of child processes).
247239
// For context, see #8904
248-
old_io::test::raise_fd_limit();
240+
io::test::raise_fd_limit();
249241
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
250242
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
251243
os::setenv("__COMPAT_LAYER", "RunAsInvoker");

branches/try/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010
use self::WhichLine::*;
1111

12-
use std::old_io::{BufferedReader, File};
12+
use std::io::{BufferedReader, File};
1313

1414
pub struct ExpectedError {
1515
pub line: uint,

branches/try/src/compiletest/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ pub fn is_test_ignored(config: &Config, testfile: &Path) -> bool {
223223
fn iter_header<F>(testfile: &Path, mut it: F) -> bool where
224224
F: FnMut(&str) -> bool,
225225
{
226-
use std::old_io::{BufferedReader, File};
226+
use std::io::{BufferedReader, File};
227227

228228
let mut rdr = BufferedReader::new(File::open(testfile).unwrap());
229229
for ln in rdr.lines() {

branches/try/src/compiletest/procsrv.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::old_io::process::{ProcessExit, Command, Process, ProcessOutput};
11+
use std::io::process::{ProcessExit, Command, Process, ProcessOutput};
1212
use std::dynamic_lib::DynamicLibrary;
1313

1414
fn add_target_env(cmd: &mut Command, lib_path: &str, aux_path: Option<&str>) {
@@ -47,7 +47,7 @@ pub fn run(lib_path: &str,
4747
match cmd.spawn() {
4848
Ok(mut process) => {
4949
for input in input.iter() {
50-
process.stdin.as_mut().unwrap().write_all(input.as_bytes()).unwrap();
50+
process.stdin.as_mut().unwrap().write(input.as_bytes()).unwrap();
5151
}
5252
let ProcessOutput { status, output, error } =
5353
process.wait_with_output().unwrap();
@@ -79,7 +79,7 @@ pub fn run_background(lib_path: &str,
7979
match cmd.spawn() {
8080
Ok(mut process) => {
8181
for input in input.iter() {
82-
process.stdin.as_mut().unwrap().write_all(input.as_bytes()).unwrap();
82+
process.stdin.as_mut().unwrap().write(input.as_bytes()).unwrap();
8383
}
8484

8585
Some(process)

branches/try/src/compiletest/runtest.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ use util;
2323

2424
#[cfg(target_os = "windows")]
2525
use std::ascii::AsciiExt;
26-
use std::old_io::File;
27-
use std::old_io::fs::PathExtensions;
28-
use std::old_io::fs;
29-
use std::old_io::net::tcp;
30-
use std::old_io::process::ProcessExit;
31-
use std::old_io::process;
32-
use std::old_io::timer;
33-
use std::old_io;
26+
use std::io::File;
27+
use std::io::fs::PathExtensions;
28+
use std::io::fs;
29+
use std::io::net::tcp;
30+
use std::io::process::ProcessExit;
31+
use std::io::process;
32+
use std::io::timer;
33+
use std::io;
3434
use std::os;
3535
use std::iter::repeat;
3636
use std::str;
@@ -619,7 +619,7 @@ fn find_rust_src_root(config: &Config) -> Option<Path> {
619619
}
620620

621621
fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path) {
622-
use std::old_io::process::{Command, ProcessOutput};
622+
use std::io::process::{Command, ProcessOutput};
623623

624624
if config.lldb_python_dir.is_none() {
625625
fatal("Can't run LLDB test because LLDB's python path is not set.");
@@ -764,7 +764,7 @@ struct DebuggerCommands {
764764

765765
fn parse_debugger_commands(file_path: &Path, debugger_prefix: &str)
766766
-> DebuggerCommands {
767-
use std::old_io::{BufferedReader, File};
767+
use std::io::{BufferedReader, File};
768768

769769
let command_directive = format!("{}-command", debugger_prefix);
770770
let check_directive = format!("{}-check", debugger_prefix);
@@ -1224,7 +1224,7 @@ fn compose_and_run_compiler(
12241224

12251225
fn ensure_dir(path: &Path) {
12261226
if path.is_dir() { return; }
1227-
fs::mkdir(path, old_io::USER_RWX).unwrap();
1227+
fs::mkdir(path, io::USER_RWX).unwrap();
12281228
}
12291229

12301230
fn compose_and_run(config: &Config, testfile: &Path,
@@ -1401,7 +1401,7 @@ fn dump_output(config: &Config, testfile: &Path, out: &str, err: &str) {
14011401
fn dump_output_file(config: &Config, testfile: &Path,
14021402
out: &str, extension: &str) {
14031403
let outfile = make_out_name(config, testfile, extension);
1404-
File::create(&outfile).write_all(out.as_bytes()).unwrap();
1404+
File::create(&outfile).write(out.as_bytes()).unwrap();
14051405
}
14061406

14071407
fn make_out_name(config: &Config, testfile: &Path, extension: &str) -> Path {

0 commit comments

Comments
 (0)