Skip to content

Commit b35e8fb

Browse files
committed
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.
2 parents 4443fb3 + adc357a commit b35e8fb

File tree

34 files changed

+79
-3
lines changed

34 files changed

+79
-3
lines changed

src/compiletest/compiletest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#[allow(non_camel_case_types)];
1414
#[deny(warnings)];
15+
#[allow(deprecated_owned_vector)];
1516

1617
extern crate test;
1718
extern crate getopts;

src/libarena/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#[license = "MIT/ASL2"];
2222
#[allow(missing_doc)];
2323
#[feature(managed_boxes)];
24+
#[allow(deprecated_owned_vector)];
2425

2526
extern crate collections;
2627

src/libcollections/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
// NOTE remove the following two attributes after the next snapshot.
2323
#[allow(unrecognized_lint)];
2424
#[allow(default_type_param_usage)];
25+
#[allow(deprecated_owned_vector)];
2526

2627
extern crate rand;
2728

src/libextra/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Rust extras are part of the standard Rust distribution.
3131

3232
#[feature(macro_rules, globs, managed_boxes, asm, default_type_params)];
3333

34+
#[allow(deprecated_owned_vector)];
3435
#[deny(non_camel_case_types)];
3536
#[deny(missing_doc)];
3637

src/libflate/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pub fn inflate_bytes_zlib(bytes: &[u8]) -> CVec<u8> {
9090

9191
#[cfg(test)]
9292
mod tests {
93+
#[allow(deprecated_owned_vector)];
9394
extern crate rand;
9495

9596
use super::{inflate_bytes, deflate_bytes};

src/libgetopts/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
#[crate_type = "dylib"];
8282
#[license = "MIT/ASL2"];
8383
#[allow(missing_doc)];
84+
#[allow(deprecated_owned_vector)];
8485

8586
#[feature(globs)];
8687

src/libglob/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#[crate_type = "rlib"];
2828
#[crate_type = "dylib"];
2929
#[license = "MIT/ASL2"];
30+
#[allow(deprecated_owned_vector)];
3031

3132
use std::cell::Cell;
3233
use std::{cmp, os, path};

src/libgreen/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
// NB this does *not* include globs, please keep it that way.
175175
#[feature(macro_rules)];
176176
#[allow(visible_private_types)];
177+
#[allow(deprecated_owned_vector)];
177178

178179
extern crate rand;
179180

src/libnative/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
html_root_url = "http://static.rust-lang.org/doc/master")];
5151
#[deny(unused_result, unused_must_use)];
5252
#[allow(non_camel_case_types)];
53+
#[allow(deprecated_owned_vector)];
5354

5455
// NB this crate explicitly does *not* allow glob imports, please seriously
5556
// consider whether they're needed before adding that feature here (the

src/libnum/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#[crate_type = "rlib"];
1515
#[crate_type = "dylib"];
1616
#[license = "MIT/ASL2"];
17+
#[allow(deprecated_owned_vector)];
1718

1819
extern crate rand;
1920

0 commit comments

Comments
 (0)