switch allow_internal_unstable const fns to rustc_allow_const_fn_unstable

This commit is contained in:
Florian Warzecha
2020-10-21 20:54:20 +02:00
parent 3948b054dc
commit 05f4a9a42a
24 changed files with 81 additions and 39 deletions

View File

@@ -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 ()),