Skip to content

Commit 2ec577d

Browse files
committed
---
yaml --- r: 41301 b: refs/heads/snap-stage3 c: 5e77d55 h: refs/heads/master i: 41299: 9a906e2 v: v3
1 parent 4b297e3 commit 2ec577d

File tree

176 files changed

+2782
-1707
lines changed

Some content is hidden

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

176 files changed

+2782
-1707
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e0728d41f2fe9c87e086dc5bcc0260dcffcb7517
4+
refs/heads/snap-stage3: 5e77d5532681f74e57fda63900fe2792ec77457b
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ 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+
1218
For more details, please refer to [Note-development-policy](https://github.com/mozilla/rust/wiki/Note-development-policy).

branches/snap-stage3/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
;;

branches/snap-stage3/src/compiletest/compiletest.rc

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

1313
#[no_core];
1414
#[legacy_exports];
15+
#[legacy_records];
1516

1617
#[allow(vecs_implicitly_copyable)];
1718
#[allow(non_camel_case_types)];

branches/snap-stage3/src/compiletest/errors.rs

Lines changed: 6 additions & 5 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 expected_error;
19+
export ExpectedError;
2020

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

2323
// Load any test directives embedded in the file
24-
fn load_errors(testfile: &Path) -> ~[expected_error] {
24+
fn load_errors(testfile: &Path) -> ~[ExpectedError] {
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) -> ~[expected_error] {
3333
return error_patterns;
3434
}
3535

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

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

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

branches/snap-stage3/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 test_props;
20+
export TestProps;
2121
export load_props;
2222
export is_test_ignored;
2323

24-
type test_props = {
24+
struct TestProps {
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 @@ type test_props = {
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) -> test_props {
39+
fn load_props(testfile: &Path) -> TestProps {
4040
let mut error_patterns = ~[];
4141
let mut aux_builds = ~[];
4242
let mut exec_env = ~[];
@@ -64,7 +64,7 @@ fn load_props(testfile: &Path) -> test_props {
6464
exec_env.push(*ee);
6565
}
6666
};
67-
return {
67+
return TestProps {
6868
error_patterns: error_patterns,
6969
compile_flags: compile_flags,
7070
pp_exact: pp_exact,

branches/snap-stage3/src/compiletest/procsrv.rs

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

54+
struct Result {status: int, out: ~str, err: ~str}
5455

5556
// FIXME (#2659): This code is duplicated in core::run::program_output
5657
fn run(lib_path: ~str,
5758
prog: ~str,
5859
args: ~[~str],
5960
env: ~[(~str, ~str)],
60-
input: Option<~str>) -> {status: int, out: ~str, err: ~str} {
61+
input: Option<~str>) -> Result {
6162

6263
let pipe_in = os::pipe();
6364
let pipe_out = os::pipe();
@@ -105,7 +106,7 @@ fn run(lib_path: ~str,
105106
};
106107
count -= 1;
107108
};
108-
return {status: status, out: outs, err: errs};
109+
return Result {status: status, out: outs, err: errs};
109110
}
110111

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

0 commit comments

Comments
 (0)