@@ -324,7 +324,7 @@ impl<T> Cell<T> {
324324 /// let c = Cell::new(5);
325325 /// ```
326326 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
327- #[ cfg_attr ( not ( bootstrap ) , rustc_const_stable( feature = "const_cell_new" , since = "1.32.0" ) ) ]
327+ #[ rustc_const_stable( feature = "const_cell_new" , since = "1.32.0" ) ]
328328 #[ inline]
329329 pub const fn new ( value : T ) -> Cell < T > {
330330 Cell {
@@ -470,7 +470,7 @@ impl<T: ?Sized> Cell<T> {
470470 /// ```
471471 #[ inline]
472472 #[ stable( feature = "cell_as_ptr" , since = "1.12.0" ) ]
473- #[ cfg_attr ( not ( bootstrap ) , rustc_const_stable( feature = "const_cell_as_ptr" , since = "1.32.0" ) ) ]
473+ #[ rustc_const_stable( feature = "const_cell_as_ptr" , since = "1.32.0" ) ]
474474 pub const fn as_ptr ( & self ) -> * mut T {
475475 self . value . get ( )
476476 }
@@ -651,7 +651,7 @@ impl<T> RefCell<T> {
651651 /// let c = RefCell::new(5);
652652 /// ```
653653 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
654- #[ cfg_attr ( not ( bootstrap ) , rustc_const_stable( feature = "const_refcell_new" , since = "1.32.0" ) ) ]
654+ #[ rustc_const_stable( feature = "const_refcell_new" , since = "1.32.0" ) ]
655655 #[ inline]
656656 pub const fn new ( value : T ) -> RefCell < T > {
657657 RefCell {
@@ -1504,10 +1504,7 @@ impl<T> UnsafeCell<T> {
15041504 /// let uc = UnsafeCell::new(5);
15051505 /// ```
15061506 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1507- #[ cfg_attr(
1508- not( bootstrap) ,
1509- rustc_const_stable( feature = "const_unsafe_cell_new" , since = "1.32.0" ) ,
1510- ) ]
1507+ #[ rustc_const_stable( feature = "const_unsafe_cell_new" , since = "1.32.0" ) ]
15111508 #[ inline]
15121509 pub const fn new ( value : T ) -> UnsafeCell < T > {
15131510 UnsafeCell { value }
@@ -1550,10 +1547,7 @@ impl<T: ?Sized> UnsafeCell<T> {
15501547 /// ```
15511548 #[ inline]
15521549 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1553- #[ cfg_attr(
1554- not( bootstrap) ,
1555- rustc_const_stable( feature = "const_unsafecell_get" , since = "1.32.0" ) ,
1556- ) ]
1550+ #[ rustc_const_stable( feature = "const_unsafecell_get" , since = "1.32.0" ) ]
15571551 pub const fn get ( & self ) -> * mut T {
15581552 // We can just cast the pointer from `UnsafeCell<T>` to `T` because of
15591553 // #[repr(transparent)]. This exploits libstd's special status, there is
0 commit comments