Skip to content

Commit f73b9ab

Browse files
committed
deprecate BitSet and BitVec
1 parent da0d452 commit f73b9ab

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/libstd/collections/mod.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,19 @@
383383
384384
#![stable(feature = "rust1", since = "1.0.0")]
385385

386+
#[deprecated(reason = "moved to cargo as `bit-vec`", since = "1.2.0")]
387+
#[unstable(feature = "collections", reason = "deprecated")]
388+
pub use core_collections::{BitVec, bit_vec};
389+
390+
#[deprecated(reason = "moved to cargo as `bit-set`", since = "1.2.0")]
391+
#[unstable(feature = "collections", reason = "deprecated")]
392+
pub use core_collections::{BitSet, bit_set};
393+
386394
pub use core_collections::Bound;
387-
pub use core_collections::{BinaryHeap, BitVec, BitSet, BTreeMap, BTreeSet};
395+
pub use core_collections::{BinaryHeap, BTreeMap, BTreeSet};
388396
pub use core_collections::{LinkedList, VecDeque, VecMap};
389397

390-
pub use core_collections::{binary_heap, bit_vec, bit_set, btree_map, btree_set};
398+
pub use core_collections::{binary_heap, btree_map, btree_set};
391399
pub use core_collections::{linked_list, vec_deque, vec_map};
392400

393401
pub use self::hash_map::HashMap;

0 commit comments

Comments
 (0)