]> git.lizzy.rs Git - rust.git/commitdiff
core: Stabilize prelude::v1
authorAlex Crichton <alex@alexcrichton.com>
Mon, 17 Aug 2015 21:02:15 +0000 (14:02 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 18 Aug 2015 02:35:52 +0000 (19:35 -0700)
This commit stabilizes the prelude::v1 module of libcore after verifying that
it's a subset of the prelude of the standard library with the addition of a few
extension traits.

src/libcore/prelude/mod.rs
src/libcore/prelude/v1.rs

index b6c9361537813ce199d0cfbee4276ce1eaabce68..99b1947c84e4f8fd0cb3a1d282ac3bd8c5418487 100644 (file)
@@ -10,4 +10,6 @@
 
 //! The libcore prelude
 
+#![stable(feature = "core_prelude", since = "1.4.0")]
+
 pub mod v1;
index fc4e4e668174a89f06b732406e19a72fcf4127b9..0457188586e49bac07d7bc637d2a27595443be03 100644 (file)
 //! well. This module is imported by default when `#![no_std]` is used in the
 //! same manner as the standard library's prelude.
 
-#![unstable(feature = "core_prelude",
-            reason = "the libcore prelude has not been scrutinized and \
-                      stabilized yet",
-            issue = "27701")]
+#![stable(feature = "core_prelude", since = "1.4.0")]
 
 // Reexported core operators
-pub use marker::{Copy, Send, Sized, Sync};
-pub use ops::{Drop, Fn, FnMut, FnOnce};
+#[doc(no_inline)] pub use marker::{Copy, Send, Sized, Sync};
+#[doc(no_inline)] pub use ops::{Drop, Fn, FnMut, FnOnce};
 
 // Reexported functions
-pub use mem::drop;
+#[doc(no_inline)] pub use mem::drop;
 
 // Reexported types and traits
-pub use char::CharExt;
-pub use clone::Clone;
-pub use cmp::{PartialEq, PartialOrd, Eq, Ord};
-pub use convert::{AsRef, AsMut, Into, From};
-pub use default::Default;
-pub use iter::IntoIterator;
-pub use iter::{Iterator, DoubleEndedIterator, Extend, ExactSizeIterator};
-pub use option::Option::{self, Some, None};
-pub use result::Result::{self, Ok, Err};
-pub use slice::SliceExt;
-pub use str::StrExt;
+#[doc(no_inline)] pub use clone::Clone;
+#[doc(no_inline)] pub use cmp::{PartialEq, PartialOrd, Eq, Ord};
+#[doc(no_inline)] pub use convert::{AsRef, AsMut, Into, From};
+#[doc(no_inline)] pub use default::Default;
+#[doc(no_inline)] pub use iter::{Iterator, Extend, IntoIterator};
+#[doc(no_inline)] pub use iter::{DoubleEndedIterator, ExactSizeIterator};
+#[doc(no_inline)] pub use option::Option::{self, Some, None};
+#[doc(no_inline)] pub use result::Result::{self, Ok, Err};
+
+// Reexported extension traits for primitive types
+#[doc(no_inline)] pub use slice::SliceExt;
+#[doc(no_inline)] pub use str::StrExt;
+#[doc(no_inline)] pub use char::CharExt;