From 62792f09f20221add2484608fc3071259067b79a Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Thu, 13 Mar 2014 18:53:14 +1100 Subject: 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. --- src/libstd/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libstd') 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 -- cgit 1.4.1-3-g733a5 From adc357abe6de869159a6268dc14709a4dd19e008 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Thu, 13 Mar 2014 23:59:01 +1100 Subject: std: render the vec_ng docs. These are wildly incomplete, but having something there is better than nothing, e.g. so that people know it exists, and many of the functions behaviour can be guessed from the name or by checking the source: it's knowing they exist at all that's the hard part. --- src/libstd/vec_ng.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libstd') 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; -- cgit 1.4.1-3-g733a5