diff options
| author | Stefan Plantikow <stefan.plantikow@googlemail.com> | 2011-12-16 01:11:29 +0100 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-12-18 18:55:39 -0800 |
| commit | fa27724a4bb213f896d4003ed129bf7caff7f3a0 (patch) | |
| tree | 019c5300f4244fee7998b7baf165a665eaa9cb52 /src/compiletest | |
| parent | bd6b80c9720bb4b0143378a052b568697ce3abe6 (diff) | |
| download | rust-fa27724a4bb213f896d4003ed129bf7caff7f3a0.tar.gz rust-fa27724a4bb213f896d4003ed129bf7caff7f3a0.zip | |
std: getopts now uses result::t (fixes #1289)
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/compiletest.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index f85edd83782..3f7ae912e9f 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -9,6 +9,9 @@ import str; import vec; import task; +import core::result; +import result::{ok, err}; + import comm::port; import comm::chan; import comm::send; @@ -42,8 +45,8 @@ fn parse_config(args: [str]) -> config { let args_ = vec::tail(args); let match = alt getopts::getopts(args_, opts) { - getopts::success(m) { m } - getopts::failure(f) { fail getopts::fail_str(f) } + ok(m) { m } + err(f) { fail getopts::fail_str(f) } }; ret {compile_lib_path: getopts::opt_str(match, "compile-lib-path"), |
