Skip to content

Commit 668ebf1

Browse files
committed
Add TryFrom, TryInto, FromIterator to the v1 prelude
1 parent 7d49427 commit 668ebf1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

library/core/src/prelude/v1.rs

+6
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ pub use crate::cmp::{Eq, Ord, PartialEq, PartialOrd};
2929
#[stable(feature = "core_prelude", since = "1.4.0")]
3030
#[doc(no_inline)]
3131
pub use crate::convert::{AsMut, AsRef, From, Into};
32+
#[stable(feature = "edition_2021_prelude", since = "1.50.0")]
33+
#[doc(no_inline)]
34+
pub use crate::convert::{TryFrom, TryInto};
3235
#[stable(feature = "core_prelude", since = "1.4.0")]
3336
#[doc(no_inline)]
3437
pub use crate::default::Default;
38+
#[stable(feature = "edition_2021_prelude", since = "1.50.0")]
39+
#[doc(no_inline)]
40+
pub use crate::iter::FromIterator;
3541
#[stable(feature = "core_prelude", since = "1.4.0")]
3642
#[doc(no_inline)]
3743
pub use crate::iter::{DoubleEndedIterator, ExactSizeIterator};

library/std/src/prelude/v1.rs

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ pub use crate::mem::drop;
2121
#[stable(feature = "rust1", since = "1.0.0")]
2222
#[doc(no_inline)]
2323
pub use crate::convert::{AsMut, AsRef, From, Into};
24+
#[stable(feature = "edition_2021_prelude", since = "1.50.0")]
25+
#[doc(no_inline)]
26+
pub use crate::convert::{TryFrom, TryInto};
27+
#[stable(feature = "edition_2021_prelude", since = "1.50.0")]
28+
#[doc(no_inline)]
29+
pub use crate::iter::FromIterator;
2430
#[stable(feature = "rust1", since = "1.0.0")]
2531
#[doc(no_inline)]
2632
pub use crate::iter::{DoubleEndedIterator, ExactSizeIterator};

0 commit comments

Comments
 (0)