Skip to content

Commit cb765ce

Browse files
committed
Stabilize collection modules
The earlier collections stabilization did not cover the modules themselves. This commit marks as stable those modules whose types have been stabilized.
1 parent 121f6c6 commit cb765ce

File tree

5 files changed

+12
-1
lines changed

5 files changed

+12
-1
lines changed

src/libcollections/binary_heap.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
//! ```
149149
150150
#![allow(missing_docs)]
151+
#![stable]
151152

152153
use core::prelude::*;
153154

src/libcollections/dlist.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
// Backlinks over DList::prev are raw pointers that form a full chain in
2020
// the reverse direction.
2121

22+
#![stable]
23+
2224
use core::prelude::*;
2325

2426
use alloc::boxed::Box;

src/libcollections/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,23 @@ pub mod string;
6565
pub mod vec;
6666
pub mod vec_map;
6767

68+
#[stable]
6869
pub mod bitv {
6970
pub use bit::{Bitv, Iter};
7071
}
7172

73+
#[stable]
7274
pub mod bitv_set {
7375
pub use bit::{BitvSet, Union, Intersection, Difference, SymmetricDifference};
7476
pub use bit::SetIter as Iter;
7577
}
7678

79+
#[stable]
7780
pub mod btree_map {
7881
pub use btree::map::*;
7982
}
8083

84+
#[stable]
8185
pub mod btree_set {
8286
pub use btree::set::*;
8387
}

src/libcollections/ring_buf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//! ends of the container. It also has `O(1)` indexing like a vector. The contained elements are
1313
//! not required to be copyable, and the queue will be sendable if the contained type is sendable.
1414
15+
#![stable]
16+
1517
use core::prelude::*;
1618

1719
use core::cmp::Ordering;

src/libstd/collections/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
//! }
310310
//! ```
311311
312-
#![experimental]
312+
#![stable]
313313

314314
pub use core_collections::{BinaryHeap, Bitv, BitvSet, BTreeMap, BTreeSet};
315315
pub use core_collections::{DList, RingBuf, VecMap};
@@ -322,11 +322,13 @@ pub use self::hash_set::HashSet;
322322

323323
mod hash;
324324

325+
#[stable]
325326
pub mod hash_map {
326327
//! A hashmap
327328
pub use super::hash::map::*;
328329
}
329330

331+
#[stable]
330332
pub mod hash_set {
331333
//! A hashset
332334
pub use super::hash::set::*;

0 commit comments

Comments
 (0)