about summary refs log tree commit diff
path: root/library/core/src/future
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-09-17 11:02:56 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-09-22 10:05:58 -0700
commit110e59e70e21b2c93dc0cd48f22dea292cf62b75 (patch)
treecb451a819e223065d7909b2460c670bc0bfea91e /library/core/src/future
parent3dd28c78c3c3f0fad72bfa41dd9655ce9d7b4bd5 (diff)
Update library functions with stability attributes
This may not be strictly minimal, but all unstable functions also need a
`rustc_const_unstable` attribute.
Diffstat (limited to 'library/core/src/future')
-rw-r--r--library/core/src/future/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/future/mod.rs b/library/core/src/future/mod.rs
index bec3adfa984..fa5655ca35f 100644
--- a/library/core/src/future/mod.rs
+++ b/library/core/src/future/mod.rs
@@ -56,6 +56,7 @@ unsafe impl Sync for ResumeTy {}
 #[lang = "from_generator"]
 #[doc(hidden)]
 #[unstable(feature = "gen_future", issue = "50547")]
+#[rustc_const_unstable(feature = "gen_future", issue = "50547")]
 #[inline]
 pub const fn from_generator<T>(gen: T) -> impl Future<Output = T::Return>
 where