Skip to content

Commit 8b45c67

Browse files
committed
---
yaml --- r: 42095 b: refs/heads/master c: e0728d4 h: refs/heads/master i: 42093: 2673086 42091: b2ce5b8 42087: 60c922d 42079: df6601b v: v3
1 parent 1845a60 commit 8b45c67

File tree

177 files changed

+1737
-2794
lines changed

Some content is hidden

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

177 files changed

+1737
-2794
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f1ddb2a32c2de840211607c9b9e32a2aed4fa7e8
2+
refs/heads/master: e0728d41f2fe9c87e086dc5bcc0260dcffcb7517
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/CONTRIBUTING.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,4 @@ Pull requests will be treated as "review requests", and we will give feedback we
99

1010
Normally, all pull requests must include regression tests (see [Note-testsuite](https://github.com/mozilla/rust/wiki/Note-testsuite)) that test your change. Occasionally, a change will be very difficult to test for. In those cases, please include a note in your commit message explaining why.
1111

12-
In the licensing header at the beginning of any files you change, please make sure the listed date range includes the current year. For example, if it's 2013, and you change a Rust file that was created in 2010, it should begin:
13-
14-
```
15-
// Copyright 2010-2013 The Rust Project Developers.
16-
```
17-
1812
For more details, please refer to [Note-development-policy](https://github.com/mozilla/rust/wiki/Note-development-policy).

trunk/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ then
516516
| cut -d ' ' -f 2)
517517

518518
case $CFG_CLANG_VERSION in
519-
(3.0svn | 3.0 | 3.1* | 3.2* | 4.0* | 4.1*)
519+
(3.0svn | 3.0 | 3.1 | 3.2 | 4.0 | 4.1)
520520
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
521521
CFG_C_COMPILER="clang"
522522
;;

trunk/src/compiletest/compiletest.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#[no_core];
1414
#[legacy_exports];
15-
#[legacy_records];
1615

1716
#[allow(vecs_implicitly_copyable)];
1817
#[allow(non_camel_case_types)];

trunk/src/compiletest/errors.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ use io::ReaderUtil;
1616
use str;
1717

1818
export load_errors;
19-
export ExpectedError;
19+
export expected_error;
2020

21-
struct ExpectedError { line: uint, kind: ~str, msg: ~str }
21+
type expected_error = { line: uint, kind: ~str, msg: ~str };
2222

2323
// Load any test directives embedded in the file
24-
fn load_errors(testfile: &Path) -> ~[ExpectedError] {
24+
fn load_errors(testfile: &Path) -> ~[expected_error] {
2525
let mut error_patterns = ~[];
2626
let rdr = io::file_reader(testfile).get();
2727
let mut line_num = 1u;
@@ -33,7 +33,7 @@ fn load_errors(testfile: &Path) -> ~[ExpectedError] {
3333
return error_patterns;
3434
}
3535

36-
fn parse_expected(line_num: uint, line: ~str) -> ~[ExpectedError] {
36+
fn parse_expected(line_num: uint, line: ~str) -> ~[expected_error] {
3737
unsafe {
3838
let error_tag = ~"//~";
3939
let mut idx;
@@ -63,7 +63,6 @@ fn parse_expected(line_num: uint, line: ~str) -> ~[ExpectedError] {
6363

6464
debug!("line=%u kind=%s msg=%s", line_num - adjust_line, kind, msg);
6565

66-
return ~[ExpectedError{line: line_num - adjust_line, kind: kind,
67-
msg: msg}];
66+
return ~[{line: line_num - adjust_line, kind: kind, msg: msg}];
6867
}
6968
}

trunk/src/compiletest/header.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ use io::ReaderUtil;
1717
use os;
1818
use str;
1919

20-
export TestProps;
20+
export test_props;
2121
export load_props;
2222
export is_test_ignored;
2323

24-
struct TestProps {
24+
type test_props = {
2525
// Lines that should be expected, in order, on standard out
2626
error_patterns: ~[~str],
2727
// Extra flags to pass to the compiler
@@ -33,10 +33,10 @@ struct TestProps {
3333
aux_builds: ~[~str],
3434
// Environment settings to use during execution
3535
exec_env: ~[(~str,~str)]
36-
}
36+
};
3737

3838
// Load any test directives embedded in the file
39-
fn load_props(testfile: &Path) -> TestProps {
39+
fn load_props(testfile: &Path) -> test_props {
4040
let mut error_patterns = ~[];
4141
let mut aux_builds = ~[];
4242
let mut exec_env = ~[];
@@ -64,7 +64,7 @@ fn load_props(testfile: &Path) -> TestProps {
6464
exec_env.push(*ee);
6565
}
6666
};
67-
return TestProps {
67+
return {
6868
error_patterns: error_patterns,
6969
compile_flags: compile_flags,
7070
pp_exact: pp_exact,

trunk/src/compiletest/procsrv.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@ fn target_env(_lib_path: ~str, _prog: ~str) -> ~[(~str,~str)] {
5151
~[]
5252
}
5353

54-
struct Result {status: int, out: ~str, err: ~str}
5554

5655
// FIXME (#2659): This code is duplicated in core::run::program_output
5756
fn run(lib_path: ~str,
5857
prog: ~str,
5958
args: ~[~str],
6059
env: ~[(~str, ~str)],
61-
input: Option<~str>) -> Result {
60+
input: Option<~str>) -> {status: int, out: ~str, err: ~str} {
6261

6362
let pipe_in = os::pipe();
6463
let pipe_out = os::pipe();
@@ -106,7 +105,7 @@ fn run(lib_path: ~str,
106105
};
107106
count -= 1;
108107
};
109-
return Result {status: status, out: outs, err: errs};
108+
return {status: status, out: outs, err: errs};
110109
}
111110

112111
fn writeclose(fd: c_int, s: Option<~str>) {

0 commit comments

Comments
 (0)