auto merge of #12861 : huonw/rust/lint-owned-vecs, r=thestinger

lint: add lint for use of a `~[T]`.

This is useless at the moment (since pretty much every crate uses
`~[]`), but should help avoid regressions once completely removed from a
crate.
This commit is contained in:
bors 2014-03-13 22:26:35 -07:00
commit b35e8fbfcb
34 changed files with 79 additions and 3 deletions

View file

@ -14,6 +14,7 @@
#[crate_type = "dylib"];
#[crate_type = "rlib"];
#[allow(deprecated_owned_vector)];
#[feature(globs, struct_variant, managed_boxes, macro_rules)];
extern crate syntax;

View file

@ -166,6 +166,9 @@ fn maketest(s: &str, cratename: &str, loose_feature_gating: bool) -> ~str {
let mut prog = ~r"
#[deny(warnings)];
#[allow(unused_variable, dead_assignment, unused_mut, attribute_usage, dead_code)];
// FIXME: remove when ~[] disappears from tests.
#[allow(deprecated_owned_vector)];
";
if loose_feature_gating {