Skip to content

Commit 09008cc

Browse files
committed
Add TryFrom and TryInto to the prelude
1 parent e53a2a7 commit 09008cc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/libcore/prelude/v1.rs

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ pub use cmp::{PartialEq, PartialOrd, Eq, Ord};
3939
#[stable(feature = "core_prelude", since = "1.4.0")]
4040
#[doc(no_inline)]
4141
pub use convert::{AsRef, AsMut, Into, From};
42+
#[stable(feature = "try_from", since = "1.26.0")]
43+
#[doc(no_inline)]
44+
pub use convert::{TryFrom, TryInto};
4245
#[stable(feature = "core_prelude", since = "1.4.0")]
4346
#[doc(no_inline)]
4447
pub use default::Default;

src/libstd/prelude/v1.rs

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#[doc(no_inline)] pub use cmp::{PartialEq, PartialOrd, Eq, Ord};
3636
#[stable(feature = "rust1", since = "1.0.0")]
3737
#[doc(no_inline)] pub use convert::{AsRef, AsMut, Into, From};
38+
#[stable(feature = "try_from", since = "1.26.0")]
39+
#[doc(no_inline)] pub use convert::{TryFrom, TryInto};
3840
#[stable(feature = "rust1", since = "1.0.0")]
3941
#[doc(no_inline)] pub use default::Default;
4042
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)