Skip to content

Commit 2907611

Browse files
committed
deprecate vecmap
1 parent dd8fee0 commit 2907611

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/libcollections/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ pub use enum_set::EnumSet;
8888
pub use vec_deque::VecDeque;
8989
pub use string::String;
9090
pub use vec::Vec;
91+
#[allow(deprecated)]
9192
pub use vec_map::VecMap;
9293

9394
// Needed for the vec! macro
@@ -109,6 +110,7 @@ pub mod str;
109110
pub mod string;
110111
pub mod vec;
111112
pub mod vec_deque;
113+
#[allow(deprecated)]
112114
pub mod vec_map;
113115

114116
#[unstable(feature = "bitvec", reason = "RFC 509")]

src/libcollections/vec_map.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
//! A simple map based on a vector for small integer keys. Space requirements
1212
//! are O(highest integer key).
1313
14+
#![deprecated(reason = "VecMap moved to crates.io as vec_map",
15+
since = "1.3.0")]
16+
#![unstable(feature = "vecmap", reason = "deprecated")]
17+
#![allow(deprecated)]
18+
1419
#![allow(missing_docs)]
15-
#![unstable(feature = "vecmap",
16-
reason = "may not be stabilized in the standard library")]
1720

1821
use self::Entry::*;
1922

src/libserialize/collection_impls.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// VecMap
12+
#![allow(deprecated)]
13+
1114
//! Implementations of serialization for structures found in libcollections
1215
1316
use std::usize;

0 commit comments

Comments
 (0)