summary refs log tree commit diff
path: root/src/libtest
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-17 23:45:55 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-23 15:18:14 -0700
commit1c9aa362292555566e4ff8366f574b70ff59d5c8 (patch)
tree1d78068ae138c8fd5893cd1a64866a20f9f19cbf /src/libtest
parentd8b633527484e0bc4310c23133f2f7a3b260bc4d (diff)
downloadrust-1c9aa362292555566e4ff8366f574b70ff59d5c8.tar.gz
rust-1c9aa362292555566e4ff8366f574b70ff59d5c8.zip
std: Bring back f32::from_str_radix as an unstable API
This API was exercised in a few tests and mirrors the `from_str_radix`
functionality of the integer types.

Conflicts:
	src/doc/trpl/traits.md
	src/libstd/sys/windows/fs2.rs
Diffstat (limited to 'src/libtest')
-rw-r--r--src/libtest/stats.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libtest/stats.rs b/src/libtest/stats.rs
index 341be762601..c1ba1260f67 100644
--- a/src/libtest/stats.rs
+++ b/src/libtest/stats.rs
@@ -338,14 +338,13 @@ mod tests {
 
     macro_rules! assert_approx_eq {
         ($a:expr, $b:expr) => ({
-            use std::num::Float;
             let (a, b) = (&$a, &$b);
             assert!((*a - *b).abs() < 1.0e-6,
                     "{} is not approximately equal to {}", *a, *b);
         })
     }
 
-    fn check(samples: &[f64], summ: &Summary<f64>) {
+    fn check(samples: &[f64], summ: &Summary) {
 
         let summ2 = Summary::new(samples);