From 2907611025d0a364e96de1a9773a4d94900e8a32 Mon Sep 17 00:00:00 2001 From: Alexis Beingessner Date: Wed, 1 Jul 2015 23:29:53 -0700 Subject: [PATCH] deprecate vecmap --- src/libcollections/lib.rs | 2 ++ src/libcollections/vec_map.rs | 7 +++++-- src/libserialize/collection_impls.rs | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs index 42adbe10e50..df4600c7959 100644 --- a/src/libcollections/lib.rs +++ b/src/libcollections/lib.rs @@ -88,6 +88,7 @@ pub use enum_set::EnumSet; pub use vec_deque::VecDeque; pub use string::String; pub use vec::Vec; +#[allow(deprecated)] pub use vec_map::VecMap; // Needed for the vec! macro @@ -109,6 +110,7 @@ pub mod str; pub mod string; pub mod vec; pub mod vec_deque; +#[allow(deprecated)] pub mod vec_map; #[unstable(feature = "bitvec", reason = "RFC 509")] diff --git a/src/libcollections/vec_map.rs b/src/libcollections/vec_map.rs index 685bb5dc4b4..158ed08473b 100644 --- a/src/libcollections/vec_map.rs +++ b/src/libcollections/vec_map.rs @@ -11,9 +11,12 @@ //! A simple map based on a vector for small integer keys. Space requirements //! are O(highest integer key). +#![deprecated(reason = "VecMap moved to crates.io as vec_map", + since = "1.3.0")] +#![unstable(feature = "vecmap", reason = "deprecated")] +#![allow(deprecated)] + #![allow(missing_docs)] -#![unstable(feature = "vecmap", - reason = "may not be stabilized in the standard library")] use self::Entry::*; diff --git a/src/libserialize/collection_impls.rs b/src/libserialize/collection_impls.rs index e7430f698e9..4b31a606931 100644 --- a/src/libserialize/collection_impls.rs +++ b/src/libserialize/collection_impls.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// VecMap +#![allow(deprecated)] + //! Implementations of serialization for structures found in libcollections use std::usize;