1
Fork 0

core: Stabilize prelude::v1

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.
This commit is contained in:
Alex Crichton 2015-08-17 14:02:15 -07:00
parent 0c849de1a2
commit 5990249e48
2 changed files with 19 additions and 18 deletions

View file

@ -10,4 +10,6 @@
//! The libcore prelude //! The libcore prelude
#![stable(feature = "core_prelude", since = "1.4.0")]
pub mod v1; pub mod v1;

View file

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