Skip to content

Commit f1c21b0

Browse files
committed
Auto merge of #49518 - SimonSapin:prelude, r=alexcrichton
Revert "Add TryFrom and TryInto to the prelude" This reverts commit 09008cc. This addition landed in #49305 and turned out to break crates that had their own copy of `TryFrom` in order to use it on the Stable channel :( We’ll explore the possibility of the 2018 edition having a different prelude that includes this traits. However per the editions RFC this requires implementing a warning in the 2015 edition for code that *would* break.
2 parents a6f1c6a + ba4f310 commit f1c21b0

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/libcore/prelude/v1.rs

-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ 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};
4542
#[stable(feature = "core_prelude", since = "1.4.0")]
4643
#[doc(no_inline)]
4744
pub use default::Default;

src/libstd/prelude/v1.rs

-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
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};
4038
#[stable(feature = "rust1", since = "1.0.0")]
4139
#[doc(no_inline)] pub use default::Default;
4240
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)