Skip to content

deprecate vecmap #26734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/libcollections/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")]
Expand Down
7 changes: 5 additions & 2 deletions src/libcollections/vec_map.rs
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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