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.
This commit is contained in:
Alex Crichton
2014-06-06 10:27:49 -07:00
parent f9260d41d6
commit 3316b1eb7c
68 changed files with 355 additions and 823 deletions

View File

@@ -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,