deprecate vecmap

This commit is contained in:
Alexis Beingessner 2015-07-01 23:29:53 -07:00
parent dd8fee0ae6
commit 2907611025
3 changed files with 10 additions and 2 deletions

View File

@ -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")]

View File

@ -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::*;

View File

@ -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;