|
11 | 11 | #[crate_type = "bin"];
|
12 | 12 |
|
13 | 13 | #[no_core];
|
14 |
| -#[legacy_records]; |
15 | 14 |
|
16 | 15 | #[allow(vecs_implicitly_copyable)];
|
17 | 16 | #[allow(non_camel_case_types)];
|
@@ -77,26 +76,28 @@ pub fn parse_config(args: ~[~str]) -> config {
|
77 | 76 | Path(getopts::opt_str(m, nm))
|
78 | 77 | }
|
79 | 78 |
|
80 |
| - return {compile_lib_path: getopts::opt_str(matches, ~"compile-lib-path"), |
81 |
| - run_lib_path: getopts::opt_str(matches, ~"run-lib-path"), |
82 |
| - rustc_path: opt_path(matches, ~"rustc-path"), |
83 |
| - src_base: opt_path(matches, ~"src-base"), |
84 |
| - build_base: opt_path(matches, ~"build-base"), |
85 |
| - aux_base: opt_path(matches, ~"aux-base"), |
86 |
| - stage_id: getopts::opt_str(matches, ~"stage-id"), |
87 |
| - mode: str_mode(getopts::opt_str(matches, ~"mode")), |
88 |
| - run_ignored: getopts::opt_present(matches, ~"ignored"), |
89 |
| - filter: |
| 79 | + config { |
| 80 | + compile_lib_path: getopts::opt_str(matches, ~"compile-lib-path"), |
| 81 | + run_lib_path: getopts::opt_str(matches, ~"run-lib-path"), |
| 82 | + rustc_path: opt_path(matches, ~"rustc-path"), |
| 83 | + src_base: opt_path(matches, ~"src-base"), |
| 84 | + build_base: opt_path(matches, ~"build-base"), |
| 85 | + aux_base: opt_path(matches, ~"aux-base"), |
| 86 | + stage_id: getopts::opt_str(matches, ~"stage-id"), |
| 87 | + mode: str_mode(getopts::opt_str(matches, ~"mode")), |
| 88 | + run_ignored: getopts::opt_present(matches, ~"ignored"), |
| 89 | + filter: |
90 | 90 | if vec::len(matches.free) > 0u {
|
91 | 91 | option::Some(matches.free[0])
|
92 | 92 | } else { option::None },
|
93 |
| - logfile: option::map(&getopts::opt_maybe_str(matches, |
| 93 | + logfile: option::map(&getopts::opt_maybe_str(matches, |
94 | 94 | ~"logfile"),
|
95 |
| - |s| Path(*s)), |
96 |
| - runtool: getopts::opt_maybe_str(matches, ~"runtool"), |
97 |
| - rustcflags: getopts::opt_maybe_str(matches, ~"rustcflags"), |
98 |
| - jit: getopts::opt_present(matches, ~"jit"), |
99 |
| - verbose: getopts::opt_present(matches, ~"verbose")}; |
| 95 | + |s| Path(*s)), |
| 96 | + runtool: getopts::opt_maybe_str(matches, ~"runtool"), |
| 97 | + rustcflags: getopts::opt_maybe_str(matches, ~"rustcflags"), |
| 98 | + jit: getopts::opt_present(matches, ~"jit"), |
| 99 | + verbose: getopts::opt_present(matches, ~"verbose") |
| 100 | + } |
100 | 101 | }
|
101 | 102 |
|
102 | 103 | pub fn log_config(config: config) {
|
|
0 commit comments