Auto merge of #26734 - Gankro:deprecate-vecmap, r=alexcrichton

VecMap doesn't really fit with the current standard library's strategy (small!).

I've mirrored the code to https://github.com/contain-rs/vec-map

but @GBGamer has already claimed the name on crates.io a couple months ago for the same purpose. It hasn't been updated since, though.

CC @rust-lang/libs
This commit is contained in:
bors 2015-07-30 02:41:14 +00:00
commit 0bc993c75b
3 changed files with 10 additions and 2 deletions

View File

@ -87,6 +87,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
@ -108,6 +109,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;