diff options
| author | bors <bors@rust-lang.org> | 2014-03-13 22:26:35 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-13 22:26:35 -0700 |
| commit | b35e8fbfcb1ddf613184dbd512f1c896d99c77c9 (patch) | |
| tree | 414de2b960bd9508b33deaebe14588d1ed76d37b /src/libstd | |
| parent | 4443fb3cfa945cf7cb791cf8f2ec81b7faf25132 (diff) | |
| parent | adc357abe6de869159a6268dc14709a4dd19e008 (diff) | |
| download | rust-b35e8fbfcb1ddf613184dbd512f1c896d99c77c9.tar.gz rust-b35e8fbfcb1ddf613184dbd512f1c896d99c77c9.zip | |
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.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/lib.rs | 1 | ||||
| -rw-r--r-- | src/libstd/vec_ng.rs | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index a873eccfb03..24a77b71fba 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -65,6 +65,7 @@ #[deny(non_camel_case_types)]; #[deny(missing_doc)]; #[allow(unknown_features)]; +#[allow(deprecated_owned_vector)]; // When testing libstd, bring in libuv as the I/O backend so tests can print // things and all of the std::io tests have an I/O interface to run on top diff --git a/src/libstd/vec_ng.rs b/src/libstd/vec_ng.rs index 199fc68be47..7b77a4b60fb 100644 --- a/src/libstd/vec_ng.rs +++ b/src/libstd/vec_ng.rs @@ -8,8 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Migrate documentation over from `std::vec` when it is removed. -#[doc(hidden)]; +// Migrate documentation over from `std::vec` progressively. (This is +// shown in docs so that people have something to refer too, even if +// the page is rather empty.) +#[allow(missing_doc)]; use cast::{forget, transmute}; use clone::Clone; |
