@@ -589,7 +589,7 @@ impl<T> Option<T> {
589
589
#[ must_use]
590
590
#[ inline]
591
591
#[ unstable( feature = "option_result_contains" , issue = "62358" ) ]
592
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
592
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
593
593
pub const fn contains < U > ( & self , x : & U ) -> bool
594
594
where
595
595
U : ~const PartialEq < T > ,
@@ -661,7 +661,7 @@ impl<T> Option<T> {
661
661
#[ inline]
662
662
#[ must_use]
663
663
#[ stable( feature = "pin" , since = "1.33.0" ) ]
664
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
664
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
665
665
pub const fn as_pin_ref ( self : Pin < & Self > ) -> Option < Pin < & T > > {
666
666
match Pin :: get_ref ( self ) . as_ref ( ) {
667
667
// SAFETY: `x` is guaranteed to be pinned because it comes from `self`
@@ -677,7 +677,7 @@ impl<T> Option<T> {
677
677
#[ inline]
678
678
#[ must_use]
679
679
#[ stable( feature = "pin" , since = "1.33.0" ) ]
680
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
680
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
681
681
pub const fn as_pin_mut ( self : Pin < & mut Self > ) -> Option < Pin < & mut T > > {
682
682
// SAFETY: `get_unchecked_mut` is never used to move the `Option` inside `self`.
683
683
// `x` is guaranteed to be pinned because it comes from `self` which is pinned.
@@ -775,7 +775,7 @@ impl<T> Option<T> {
775
775
/// ```
776
776
#[ inline]
777
777
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
778
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
778
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
779
779
pub const fn unwrap_or ( self , default : T ) -> T
780
780
where
781
781
T : ~const Drop ,
@@ -797,7 +797,7 @@ impl<T> Option<T> {
797
797
/// ```
798
798
#[ inline]
799
799
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
800
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
800
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
801
801
pub const fn unwrap_or_else < F > ( self , f : F ) -> T
802
802
where
803
803
F : ~const FnOnce ( ) -> T ,
@@ -832,7 +832,7 @@ impl<T> Option<T> {
832
832
#[ inline]
833
833
#[ track_caller]
834
834
#[ stable( feature = "option_result_unwrap_unchecked" , since = "1.58.0" ) ]
835
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
835
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
836
836
pub const unsafe fn unwrap_unchecked ( self ) -> T {
837
837
debug_assert ! ( self . is_some( ) ) ;
838
838
match self {
@@ -863,7 +863,7 @@ impl<T> Option<T> {
863
863
/// ```
864
864
#[ inline]
865
865
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
866
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
866
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
867
867
pub const fn map < U , F > ( self , f : F ) -> Option < U >
868
868
where
869
869
F : ~const FnOnce ( T ) -> U ,
@@ -892,7 +892,7 @@ impl<T> Option<T> {
892
892
/// ```
893
893
#[ inline]
894
894
#[ unstable( feature = "result_option_inspect" , issue = "91345" ) ]
895
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
895
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
896
896
pub const fn inspect < F > ( self , f : F ) -> Self
897
897
where
898
898
F : ~const FnOnce ( & T ) ,
@@ -925,7 +925,7 @@ impl<T> Option<T> {
925
925
/// ```
926
926
#[ inline]
927
927
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
928
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
928
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
929
929
pub const fn map_or < U , F > ( self , default : U , f : F ) -> U
930
930
where
931
931
F : ~const FnOnce ( T ) -> U ,
@@ -954,7 +954,7 @@ impl<T> Option<T> {
954
954
/// ```
955
955
#[ inline]
956
956
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
957
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
957
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
958
958
pub const fn map_or_else < U , D , F > ( self , default : D , f : F ) -> U
959
959
where
960
960
D : ~const FnOnce ( ) -> U ,
@@ -991,7 +991,7 @@ impl<T> Option<T> {
991
991
/// ```
992
992
#[ inline]
993
993
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
994
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
994
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
995
995
pub const fn ok_or < E > ( self , err : E ) -> Result < T , E >
996
996
where
997
997
E : ~const Drop ,
@@ -1020,7 +1020,7 @@ impl<T> Option<T> {
1020
1020
/// ```
1021
1021
#[ inline]
1022
1022
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1023
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1023
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1024
1024
pub const fn ok_or_else < E , F > ( self , err : F ) -> Result < T , E >
1025
1025
where
1026
1026
F : ~const FnOnce ( ) -> E ,
@@ -1102,7 +1102,7 @@ impl<T> Option<T> {
1102
1102
/// ```
1103
1103
#[ inline]
1104
1104
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1105
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1105
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1106
1106
pub const fn and < U > ( self , optb : Option < U > ) -> Option < U >
1107
1107
where
1108
1108
T : ~const Drop ,
@@ -1132,7 +1132,7 @@ impl<T> Option<T> {
1132
1132
/// ```
1133
1133
#[ inline]
1134
1134
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1135
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1135
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1136
1136
pub const fn and_then < U , F > ( self , f : F ) -> Option < U >
1137
1137
where
1138
1138
F : ~const FnOnce ( T ) -> Option < U > ,
@@ -1170,7 +1170,7 @@ impl<T> Option<T> {
1170
1170
/// [`Some(t)`]: Some
1171
1171
#[ inline]
1172
1172
#[ stable( feature = "option_filter" , since = "1.27.0" ) ]
1173
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1173
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1174
1174
pub const fn filter < P > ( self , predicate : P ) -> Self
1175
1175
where
1176
1176
T : ~const Drop ,
@@ -1214,7 +1214,7 @@ impl<T> Option<T> {
1214
1214
/// ```
1215
1215
#[ inline]
1216
1216
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1217
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1217
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1218
1218
pub const fn or ( self , optb : Option < T > ) -> Option < T >
1219
1219
where
1220
1220
T : ~const Drop ,
@@ -1240,7 +1240,7 @@ impl<T> Option<T> {
1240
1240
/// ```
1241
1241
#[ inline]
1242
1242
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1243
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1243
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1244
1244
pub const fn or_else < F > ( self , f : F ) -> Option < T >
1245
1245
where
1246
1246
F : ~const FnOnce ( ) -> Option < T > ,
@@ -1275,7 +1275,7 @@ impl<T> Option<T> {
1275
1275
/// ```
1276
1276
#[ inline]
1277
1277
#[ stable( feature = "option_xor" , since = "1.37.0" ) ]
1278
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1278
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1279
1279
pub const fn xor ( self , optb : Option < T > ) -> Option < T >
1280
1280
where
1281
1281
T : ~const Drop ,
@@ -1313,7 +1313,7 @@ impl<T> Option<T> {
1313
1313
#[ must_use = "if you intended to set a value, consider assignment instead" ]
1314
1314
#[ inline]
1315
1315
#[ stable( feature = "option_insert" , since = "1.53.0" ) ]
1316
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1316
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1317
1317
pub const fn insert ( & mut self , value : T ) -> & mut T
1318
1318
where
1319
1319
T : ~const Drop ,
@@ -1346,7 +1346,7 @@ impl<T> Option<T> {
1346
1346
/// ```
1347
1347
#[ inline]
1348
1348
#[ stable( feature = "option_entry" , since = "1.20.0" ) ]
1349
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1349
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1350
1350
pub const fn get_or_insert ( & mut self , value : T ) -> & mut T
1351
1351
where
1352
1352
T : ~const Drop ,
@@ -1381,7 +1381,7 @@ impl<T> Option<T> {
1381
1381
/// ```
1382
1382
#[ inline]
1383
1383
#[ unstable( feature = "option_get_or_insert_default" , issue = "82901" ) ]
1384
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1384
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1385
1385
pub const fn get_or_insert_default ( & mut self ) -> & mut T
1386
1386
where
1387
1387
T : ~const Default ,
@@ -1413,7 +1413,7 @@ impl<T> Option<T> {
1413
1413
/// ```
1414
1414
#[ inline]
1415
1415
#[ stable( feature = "option_entry" , since = "1.20.0" ) ]
1416
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1416
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1417
1417
pub const fn get_or_insert_with < F > ( & mut self , f : F ) -> & mut T
1418
1418
where
1419
1419
F : ~const FnOnce ( ) -> T ,
@@ -1497,7 +1497,7 @@ impl<T> Option<T> {
1497
1497
/// assert_eq!(x.zip(z), None);
1498
1498
/// ```
1499
1499
#[ stable( feature = "option_zip_option" , since = "1.46.0" ) ]
1500
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1500
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1501
1501
pub const fn zip < U > ( self , other : Option < U > ) -> Option < ( T , U ) >
1502
1502
where
1503
1503
T : ~const Drop ,
@@ -1538,7 +1538,7 @@ impl<T> Option<T> {
1538
1538
/// assert_eq!(x.zip_with(None, Point::new), None);
1539
1539
/// ```
1540
1540
#[ unstable( feature = "option_zip" , issue = "70086" ) ]
1541
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1541
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1542
1542
pub const fn zip_with < U , F , R > ( self , other : Option < U > , f : F ) -> Option < R >
1543
1543
where
1544
1544
F : ~const FnOnce ( T , U ) -> R ,
@@ -1621,7 +1621,7 @@ impl<T: Copy> Option<&mut T> {
1621
1621
/// ```
1622
1622
#[ must_use = "`self` will be dropped if the result is not used" ]
1623
1623
#[ stable( feature = "copied" , since = "1.35.0" ) ]
1624
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1624
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1625
1625
pub const fn copied ( self ) -> Option < T > {
1626
1626
match self {
1627
1627
Some ( & mut t) => Some ( t) ,
@@ -1713,7 +1713,7 @@ impl<T: Default> Option<T> {
1713
1713
/// [`FromStr`]: crate::str::FromStr
1714
1714
#[ inline]
1715
1715
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1716
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1716
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1717
1717
pub const fn unwrap_or_default ( self ) -> T
1718
1718
where
1719
1719
T : ~const Default ,
@@ -1741,7 +1741,7 @@ impl<T: Deref> Option<T> {
1741
1741
/// assert_eq!(x.as_deref(), None);
1742
1742
/// ```
1743
1743
#[ stable( feature = "option_deref" , since = "1.40.0" ) ]
1744
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1744
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1745
1745
pub const fn as_deref ( & self ) -> Option < & T :: Target >
1746
1746
where
1747
1747
T : ~const Deref ,
@@ -1769,7 +1769,7 @@ impl<T: DerefMut> Option<T> {
1769
1769
/// }), Some("HEY".to_owned().as_mut_str()));
1770
1770
/// ```
1771
1771
#[ stable( feature = "option_deref" , since = "1.40.0" ) ]
1772
- #[ rustc_const_unstable( feature = "const_option_ext" , issue = "none " ) ]
1772
+ #[ rustc_const_unstable( feature = "const_option_ext" , issue = "91930 " ) ]
1773
1773
pub const fn as_deref_mut ( & mut self ) -> Option < & mut T :: Target >
1774
1774
where
1775
1775
T : ~const DerefMut ,
0 commit comments