diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-05-25 19:58:50 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-05-25 19:58:50 +0200 |
| commit | 04a4a8225b04f7dca4cbb498af8df7d8eb89dbfc (patch) | |
| tree | 5c7dd5007a31c3b99c882b11d4c9838f4877c8d9 | |
| parent | e37ef7a8420c069932ad99954a69a94bd53faf2b (diff) | |
| download | rust-04a4a8225b04f7dca4cbb498af8df7d8eb89dbfc.tar.gz rust-04a4a8225b04f7dca4cbb498af8df7d8eb89dbfc.zip | |
Add new traits to 2021 prelude.
| -rw-r--r-- | library/core/src/prelude/mod.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/library/core/src/prelude/mod.rs b/library/core/src/prelude/mod.rs index 1bf8bd1fbb4..79753c1fb66 100644 --- a/library/core/src/prelude/mod.rs +++ b/library/core/src/prelude/mod.rs @@ -37,5 +37,11 @@ pub mod rust_2021 { #[doc(no_inline)] pub use super::v1::*; - // FIXME: Add more things. + #[unstable(feature = "prelude_2021", issue = "85684")] + #[doc(no_inline)] + pub use crate::iter::FromIterator; + + #[unstable(feature = "prelude_2021", issue = "85684")] + #[doc(no_inline)] + pub use crate::convert::{TryFrom, TryInto}; } |
