From b5d560a9e09498db5434ea26338a3d2bfc545eee Mon Sep 17 00:00:00 2001 From: blake2-ppc Date: Wed, 18 Sep 2013 02:17:47 +0200 Subject: std: Remove {float,f64,f32}::from_str in favor of from_str Like issue #9209, remove float::{from_str, from_str_radix} in favor of the two corresponding traits. The same for modules f64 and f32. New usage is from_str::("1.2e34") --- src/compiletest/compiletest.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/compiletest') diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 166638bc359..270b1097c55 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -17,7 +17,6 @@ extern mod extra; use std::os; use std::rt; -use std::f64; use extra::getopts; use extra::getopts::groups::{optopt, optflag, reqopt}; @@ -131,7 +130,7 @@ pub fn parse_config(args: ~[~str]) -> config { ratchet_noise_percent: getopts::opt_maybe_str(matches, "ratchet-noise-percent").map_move(|s| - f64::from_str(s).unwrap()), + from_str::(s).unwrap()), runtool: getopts::opt_maybe_str(matches, "runtool"), rustcflags: getopts::opt_maybe_str(matches, "rustcflags"), jit: getopts::opt_present(matches, "jit"), -- cgit 1.4.1-3-g733a5