@@ -734,7 +734,8 @@ impl<T, E> Result<T, E> {
734
734
/// ```
735
735
#[ inline]
736
736
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
737
- #[ rustc_const_unstable( feature = "const_result" , issue = "82814" ) ]
737
+ #[ rustc_const_stable( feature = "const_result" , since = "CURRENT_RUSTC_VERSION" ) ]
738
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
738
739
pub const fn as_mut ( & mut self ) -> Result < & mut T , & mut E > {
739
740
match * self {
740
741
Ok ( ref mut x) => Ok ( x) ,
@@ -1536,7 +1537,8 @@ impl<T, E> Result<&T, E> {
1536
1537
/// ```
1537
1538
#[ inline]
1538
1539
#[ stable( feature = "result_copied" , since = "1.59.0" ) ]
1539
- #[ rustc_const_unstable( feature = "const_result" , issue = "82814" ) ]
1540
+ #[ rustc_const_stable( feature = "const_result" , since = "CURRENT_RUSTC_VERSION" ) ]
1541
+ #[ rustc_allow_const_fn_unstable( const_precise_live_drops) ]
1540
1542
pub const fn copied ( self ) -> Result < T , E >
1541
1543
where
1542
1544
T : Copy ,
@@ -1586,7 +1588,9 @@ impl<T, E> Result<&mut T, E> {
1586
1588
/// ```
1587
1589
#[ inline]
1588
1590
#[ stable( feature = "result_copied" , since = "1.59.0" ) ]
1589
- #[ rustc_const_unstable( feature = "const_result" , issue = "82814" ) ]
1591
+ #[ rustc_const_stable( feature = "const_result" , since = "CURRENT_RUSTC_VERSION" ) ]
1592
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
1593
+ #[ rustc_allow_const_fn_unstable( const_precise_live_drops) ]
1590
1594
pub const fn copied ( self ) -> Result < T , E >
1591
1595
where
1592
1596
T : Copy ,
@@ -1639,7 +1643,8 @@ impl<T, E> Result<Option<T>, E> {
1639
1643
/// ```
1640
1644
#[ inline]
1641
1645
#[ stable( feature = "transpose_result" , since = "1.33.0" ) ]
1642
- #[ rustc_const_unstable( feature = "const_result" , issue = "82814" ) ]
1646
+ #[ rustc_const_stable( feature = "const_result" , since = "CURRENT_RUSTC_VERSION" ) ]
1647
+ #[ rustc_allow_const_fn_unstable( const_precise_live_drops) ]
1643
1648
pub const fn transpose ( self ) -> Option < Result < T , E > > {
1644
1649
match self {
1645
1650
Ok ( Some ( x) ) => Some ( Ok ( x) ) ,
0 commit comments