about summary refs log tree commit diff
path: root/library/core/src/task
diff options
context:
space:
mode:
authorFlorian Warzecha <liketechnik@disroot.org>2020-10-21 20:54:20 +0200
committerFlorian Warzecha <liketechnik@disroot.org>2020-10-21 20:54:20 +0200
commit05f4a9a42abbbdb64d3ec4ed0ae6883c10c66e3f (patch)
tree06d63b7fdbcdced0725fcd426494a3c8be2b3904 /library/core/src/task
parent3948b054dc8e598b83a194056dc4d3a0852dc79e (diff)
switch allow_internal_unstable const fns to rustc_allow_const_fn_unstable
Diffstat (limited to 'library/core/src/task')
-rw-r--r--library/core/src/task/wake.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/task/wake.rs b/library/core/src/task/wake.rs
index 8cca9dc9042..d3c0d9b7841 100644
--- a/library/core/src/task/wake.rs
+++ b/library/core/src/task/wake.rs
@@ -130,7 +130,8 @@ impl RawWakerVTable {
     #[rustc_promotable]
     #[stable(feature = "futures_api", since = "1.36.0")]
     #[rustc_const_stable(feature = "futures_api", since = "1.36.0")]
-    #[allow_internal_unstable(const_fn_fn_ptr_basics)]
+    #[cfg_attr(not(bootstrap), rustc_allow_const_fn_unstable(const_fn_fn_ptr_basics))]
+    #[cfg_attr(bootstrap, allow_internal_unstable(const_fn_fn_ptr_basics))]
     pub const fn new(
         clone: unsafe fn(*const ()) -> RawWaker,
         wake: unsafe fn(*const ()),