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:
commit
b35e8fbfcb
34 changed files with 79 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue