about summary refs log tree commit diff
path: root/src/libstd/collections
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-03-19 09:01:17 +0100
committerManish Goregaokar <manishsmail@gmail.com>2018-03-29 13:12:49 +0200
commitc3a63970dee2422e2fcc79d8b99303b4b046f444 (patch)
treef8cdc9df5af3d6f06bac1650ac7df2bbe549b7f3 /src/libstd/collections
parent409744bcb91f4efa35b8fcc9e7033523a86b90c2 (diff)
downloadrust-c3a63970dee2422e2fcc79d8b99303b4b046f444.tar.gz
rust-c3a63970dee2422e2fcc79d8b99303b4b046f444.zip
Move alloc::Bound to {core,std}::ops
The stable reexport `std::collections::Bound` is now deprecated.

Another deprecated reexport could be added in `alloc`,
but that crate is unstable.
Diffstat (limited to 'src/libstd/collections')
-rw-r--r--src/libstd/collections/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/collections/mod.rs b/src/libstd/collections/mod.rs
index be88f4e268a..e6f15a6119e 100644
--- a/src/libstd/collections/mod.rs
+++ b/src/libstd/collections/mod.rs
@@ -420,7 +420,8 @@
 #![stable(feature = "rust1", since = "1.0.0")]
 
 #[stable(feature = "rust1", since = "1.0.0")]
-pub use alloc::Bound;
+#[rustc_deprecated(reason = "moved to `std::ops::Bound`", since = "1.26.0")]
+pub use ops::Bound;
 #[stable(feature = "rust1", since = "1.0.0")]
 pub use alloc::{BinaryHeap, BTreeMap, BTreeSet};
 #[stable(feature = "rust1", since = "1.0.0")]