diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-06 10:27:49 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-11 15:02:17 -0700 |
| commit | 3316b1eb7c3eb520896af489dd45c4d17190d0a8 (patch) | |
| tree | c94cde854a882cad33d8ec7fe0067b43b5cb96d7 /src/libtest | |
| parent | f9260d41d6e37653bf71b08a041be0310098716a (diff) | |
| download | rust-3316b1eb7c3eb520896af489dd45c4d17190d0a8.tar.gz rust-3316b1eb7c3eb520896af489dd45c4d17190d0a8.zip | |
rustc: Remove ~[T] from the language
The following features have been removed * box [a, b, c] * ~[a, b, c] * box [a, ..N] * ~[a, ..N] * ~[T] (as a type) * deprecated_owned_vector lint All users of ~[T] should move to using Vec<T> instead.
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 11 | ||||
| -rw-r--r-- | src/libtest/stats.rs | 2 |
2 files changed, 1 insertions, 12 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 7d94e46a88a..d0101e993c4 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -33,7 +33,6 @@ html_root_url = "http://doc.rust-lang.org/")] #![feature(asm, macro_rules, phase)] -#![deny(deprecated_owned_vector)] extern crate getopts; extern crate regex; @@ -72,7 +71,7 @@ pub mod test { MetricChange, Improvement, Regression, LikelyNoise, StaticTestFn, StaticTestName, DynTestName, DynTestFn, run_test, test_main, test_main_static, filter_tests, - parse_opts, StaticBenchFn, test_main_static_x}; + parse_opts, StaticBenchFn}; } pub mod stats; @@ -263,14 +262,6 @@ pub fn test_main_static(args: &[String], tests: &[TestDescAndFn]) { test_main(args, owned_tests) } -pub fn test_main_static_x(args: &[~str], tests: &[TestDescAndFn]) { - test_main_static(args.iter() - .map(|x| x.to_string()) - .collect::<Vec<_>>() - .as_slice(), - tests) -} - pub enum ColorConfig { AutoColor, AlwaysColor, diff --git a/src/libtest/stats.rs b/src/libtest/stats.rs index c6a45b651ef..aa0e9b46fa7 100644 --- a/src/libtest/stats.rs +++ b/src/libtest/stats.rs @@ -167,7 +167,6 @@ impl<T: FloatMath + FromPrimitive> Summary<T> { impl<'a,T: FloatMath + FromPrimitive> Stats<T> for &'a [T] { // FIXME #11059 handle NaN, inf and overflow - #[allow(deprecated_owned_vector)] fn sum(self) -> T { let mut partials = vec![]; @@ -1027,7 +1026,6 @@ mod tests { #[test] fn test_boxplot_nonpositive() { - #[allow(deprecated_owned_vector)] fn t(s: &Summary<f64>, expected: String) { use std::io::MemWriter; let mut m = MemWriter::new(); |
