diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-06-14 11:11:09 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-06-14 11:11:09 +1000 |
| commit | 0642cbbde0e51d5f4465b937ab8ff7d46df02df0 (patch) | |
| tree | 8e54a19b6d39982bd8c70a47f56173123f2b4e23 /src/compiletest | |
| parent | 3851d68a27d41dfd15e12a75b590f362a0675870 (diff) | |
| download | rust-0642cbbde0e51d5f4465b937ab8ff7d46df02df0.tar.gz rust-0642cbbde0e51d5f4465b937ab8ff7d46df02df0.zip | |
getopts: format failure messages with `Show`.
This obsoletes the old `to_err_msg` method. Replace
println!("Error: {}", failure.to_err_msg())
let string = failure.to_err_msg();
with
println!("Error: {}", failure)
let string = failure.to_str();
[breaking-change]
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/compiletest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 977b7dc32c5..1d7f36d0fe0 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -110,7 +110,7 @@ pub fn parse_config(args: Vec<String> ) -> Config { let matches = &match getopts::getopts(args_.as_slice(), groups.as_slice()) { Ok(m) => m, - Err(f) => fail!("{}", f.to_err_msg()) + Err(f) => fail!("{}", f) }; if matches.opt_present("h") || matches.opt_present("help") { |
