@@ -324,7 +324,7 @@ impl<T> Cell<T> {
324
324
/// let c = Cell::new(5);
325
325
/// ```
326
326
#[ 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" ) ]
328
328
#[ inline]
329
329
pub const fn new ( value : T ) -> Cell < T > {
330
330
Cell {
@@ -470,7 +470,7 @@ impl<T: ?Sized> Cell<T> {
470
470
/// ```
471
471
#[ inline]
472
472
#[ 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" ) ]
474
474
pub const fn as_ptr ( & self ) -> * mut T {
475
475
self . value . get ( )
476
476
}
@@ -651,7 +651,7 @@ impl<T> RefCell<T> {
651
651
/// let c = RefCell::new(5);
652
652
/// ```
653
653
#[ 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" ) ]
655
655
#[ inline]
656
656
pub const fn new ( value : T ) -> RefCell < T > {
657
657
RefCell {
@@ -1504,10 +1504,7 @@ impl<T> UnsafeCell<T> {
1504
1504
/// let uc = UnsafeCell::new(5);
1505
1505
/// ```
1506
1506
#[ 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" ) ]
1511
1508
#[ inline]
1512
1509
pub const fn new ( value : T ) -> UnsafeCell < T > {
1513
1510
UnsafeCell { value }
@@ -1550,10 +1547,7 @@ impl<T: ?Sized> UnsafeCell<T> {
1550
1547
/// ```
1551
1548
#[ inline]
1552
1549
#[ 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" ) ]
1557
1551
pub const fn get ( & self ) -> * mut T {
1558
1552
// We can just cast the pointer from `UnsafeCell<T>` to `T` because of
1559
1553
// #[repr(transparent)]. This exploits libstd's special status, there is
0 commit comments