about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-05-25 19:58:50 +0200
committerMara Bos <m-ou.se@m-ou.se>2021-05-25 19:58:50 +0200
commit04a4a8225b04f7dca4cbb498af8df7d8eb89dbfc (patch)
tree5c7dd5007a31c3b99c882b11d4c9838f4877c8d9
parente37ef7a8420c069932ad99954a69a94bd53faf2b (diff)
downloadrust-04a4a8225b04f7dca4cbb498af8df7d8eb89dbfc.tar.gz
rust-04a4a8225b04f7dca4cbb498af8df7d8eb89dbfc.zip
Add new traits to 2021 prelude.
-rw-r--r--library/core/src/prelude/mod.rs8
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};
 }