@@ -250,7 +250,7 @@ pub struct Context<'a> {
250250impl < ' a > Context < ' a > {
251251 /// Create a new `Context` from a [`&Waker`](Waker).
252252 #[ stable( feature = "futures_api" , since = "1.36.0" ) ]
253- #[ rustc_const_unstable ( feature = "const_waker" , issue = "102012 " ) ]
253+ #[ rustc_const_stable ( feature = "const_waker" , since = "CURRENT_RUSTC_VERSION " ) ]
254254 #[ must_use]
255255 #[ inline]
256256 pub const fn from_waker ( waker : & ' a Waker ) -> Self {
@@ -261,23 +261,23 @@ impl<'a> Context<'a> {
261261 #[ inline]
262262 #[ must_use]
263263 #[ stable( feature = "futures_api" , since = "1.36.0" ) ]
264- #[ rustc_const_unstable ( feature = "const_waker" , issue = "102012 " ) ]
264+ #[ rustc_const_stable ( feature = "const_waker" , since = "CURRENT_RUSTC_VERSION " ) ]
265265 pub const fn waker ( & self ) -> & ' a Waker {
266266 & self . waker
267267 }
268268
269269 /// Returns a reference to the [`LocalWaker`] for the current task.
270270 #[ inline]
271271 #[ unstable( feature = "local_waker" , issue = "118959" ) ]
272- #[ rustc_const_unstable( feature = "const_waker " , issue = "102012 " ) ]
272+ #[ rustc_const_unstable( feature = "local_waker " , issue = "118959 " ) ]
273273 pub const fn local_waker ( & self ) -> & ' a LocalWaker {
274274 & self . local_waker
275275 }
276276
277277 /// Returns a reference to the extension data for the current task.
278278 #[ inline]
279279 #[ unstable( feature = "context_ext" , issue = "123392" ) ]
280- #[ rustc_const_unstable( feature = "const_waker " , issue = "102012 " ) ]
280+ #[ rustc_const_unstable( feature = "context_ext " , issue = "123392 " ) ]
281281 pub const fn ext ( & mut self ) -> & mut dyn Any {
282282 // FIXME: this field makes Context extra-weird about unwind safety
283283 // can we justify AssertUnwindSafe if we stabilize this? do we care?
@@ -336,8 +336,8 @@ pub struct ContextBuilder<'a> {
336336impl < ' a > ContextBuilder < ' a > {
337337 /// Create a ContextBuilder from a Waker.
338338 #[ inline]
339- #[ rustc_const_unstable( feature = "const_waker" , issue = "102012" ) ]
340339 #[ unstable( feature = "local_waker" , issue = "118959" ) ]
340+ #[ rustc_const_stable( feature = "const_waker" , since = "CURRENT_RUSTC_VERSION" ) ]
341341 pub const fn from_waker ( waker : & ' a Waker ) -> Self {
342342 // SAFETY: LocalWaker is just Waker without thread safety
343343 let local_waker = unsafe { transmute ( waker) } ;
@@ -352,8 +352,8 @@ impl<'a> ContextBuilder<'a> {
352352
353353 /// Create a ContextBuilder from an existing Context.
354354 #[ inline]
355- #[ rustc_const_unstable( feature = "const_waker" , issue = "102012" ) ]
356355 #[ unstable( feature = "context_ext" , issue = "123392" ) ]
356+ #[ rustc_const_unstable( feature = "context_ext" , issue = "123392" ) ]
357357 pub const fn from ( cx : & ' a mut Context < ' _ > ) -> Self {
358358 let ext = match & mut cx. ext . 0 {
359359 ExtData :: Some ( ext) => ExtData :: Some ( * ext) ,
@@ -371,31 +371,31 @@ impl<'a> ContextBuilder<'a> {
371371 /// This method is used to set the value for the waker on `Context`.
372372 #[ inline]
373373 #[ unstable( feature = "context_ext" , issue = "123392" ) ]
374- #[ rustc_const_unstable( feature = "const_waker " , issue = "102012 " ) ]
374+ #[ rustc_const_unstable( feature = "context_ext " , issue = "123392 " ) ]
375375 pub const fn waker ( self , waker : & ' a Waker ) -> Self {
376376 Self { waker, ..self }
377377 }
378378
379379 /// This method is used to set the value for the local waker on `Context`.
380380 #[ inline]
381381 #[ unstable( feature = "local_waker" , issue = "118959" ) ]
382- #[ rustc_const_unstable( feature = "const_waker " , issue = "102012 " ) ]
382+ #[ rustc_const_unstable( feature = "local_waker " , issue = "118959 " ) ]
383383 pub const fn local_waker ( self , local_waker : & ' a LocalWaker ) -> Self {
384384 Self { local_waker, ..self }
385385 }
386386
387387 /// This method is used to set the value for the extension data on `Context`.
388388 #[ inline]
389389 #[ unstable( feature = "context_ext" , issue = "123392" ) ]
390- #[ rustc_const_unstable( feature = "const_waker " , issue = "102012 " ) ]
390+ #[ rustc_const_unstable( feature = "context_ext " , issue = "123392 " ) ]
391391 pub const fn ext ( self , data : & ' a mut dyn Any ) -> Self {
392392 Self { ext : ExtData :: Some ( data) , ..self }
393393 }
394394
395395 /// Builds the `Context`.
396396 #[ inline]
397397 #[ unstable( feature = "local_waker" , issue = "118959" ) ]
398- #[ rustc_const_unstable ( feature = "const_waker" , issue = "102012 " ) ]
398+ #[ rustc_const_stable ( feature = "const_waker" , since = "CURRENT_RUSTC_VERSION " ) ]
399399 pub const fn build ( self ) -> Context < ' a > {
400400 let ContextBuilder { waker, local_waker, ext, _marker, _marker2 } = self ;
401401 Context { waker, local_waker, ext : AssertUnwindSafe ( ext) , _marker, _marker2 }
@@ -521,7 +521,7 @@ impl Waker {
521521 #[ inline]
522522 #[ must_use]
523523 #[ stable( feature = "futures_api" , since = "1.36.0" ) ]
524- #[ rustc_const_unstable ( feature = "const_waker" , issue = "102012 " ) ]
524+ #[ rustc_const_stable ( feature = "const_waker" , since = "CURRENT_RUSTC_VERSION " ) ]
525525 pub const unsafe fn from_raw ( waker : RawWaker ) -> Waker {
526526 Waker { waker }
527527 }
@@ -772,7 +772,7 @@ impl LocalWaker {
772772 #[ inline]
773773 #[ must_use]
774774 #[ unstable( feature = "local_waker" , issue = "118959" ) ]
775- #[ rustc_const_unstable( feature = "const_waker " , issue = "102012 " ) ]
775+ #[ rustc_const_unstable( feature = "local_waker " , issue = "118959 " ) ]
776776 pub const unsafe fn from_raw ( waker : RawWaker ) -> LocalWaker {
777777 Self { waker }
778778 }
0 commit comments