提交 29076110 编写于 作者: A Alexis Beingessner

deprecate vecmap

上级 dd8fee0a
...@@ -88,6 +88,7 @@ ...@@ -88,6 +88,7 @@
pub use vec_deque::VecDeque; pub use vec_deque::VecDeque;
pub use string::String; pub use string::String;
pub use vec::Vec; pub use vec::Vec;
#[allow(deprecated)]
pub use vec_map::VecMap; pub use vec_map::VecMap;
// Needed for the vec! macro // Needed for the vec! macro
...@@ -109,6 +110,7 @@ ...@@ -109,6 +110,7 @@
pub mod string; pub mod string;
pub mod vec; pub mod vec;
pub mod vec_deque; pub mod vec_deque;
#[allow(deprecated)]
pub mod vec_map; pub mod vec_map;
#[unstable(feature = "bitvec", reason = "RFC 509")] #[unstable(feature = "bitvec", reason = "RFC 509")]
......
...@@ -11,9 +11,12 @@ ...@@ -11,9 +11,12 @@
//! A simple map based on a vector for small integer keys. Space requirements //! A simple map based on a vector for small integer keys. Space requirements
//! are O(highest integer key). //! 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)] #![allow(missing_docs)]
#![unstable(feature = "vecmap",
reason = "may not be stabilized in the standard library")]
use self::Entry::*; use self::Entry::*;
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
// VecMap
#![allow(deprecated)]
//! Implementations of serialization for structures found in libcollections //! Implementations of serialization for structures found in libcollections
use std::usize; use std::usize;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册