Skip to content

Commit

Permalink
Auto merge of #26734 - Gankro:deprecate-vecmap, r=alexcrichton
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Jul 30, 2015
2 parents 4d52d7c + 2907611 commit 0bc993c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/libcollections/lib.rs
Expand Up @@ -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
Expand All @@ -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")]
Expand Down
7 changes: 5 additions & 2 deletions src/libcollections/vec_map.rs
Expand Up @@ -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::*;

Expand Down
3 changes: 3 additions & 0 deletions src/libserialize/collection_impls.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 0bc993c

Please sign in to comment.