Skip to content

Commit f141bed

Browse files
committed
Point to the tracking issue
1 parent 493cf0c commit f141bed

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

library/core/src/option.rs

+28-28
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ impl<T> Option<T> {
589589
#[must_use]
590590
#[inline]
591591
#[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")]
593593
pub const fn contains<U>(&self, x: &U) -> bool
594594
where
595595
U: ~const PartialEq<T>,
@@ -661,7 +661,7 @@ impl<T> Option<T> {
661661
#[inline]
662662
#[must_use]
663663
#[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")]
665665
pub const fn as_pin_ref(self: Pin<&Self>) -> Option<Pin<&T>> {
666666
match Pin::get_ref(self).as_ref() {
667667
// SAFETY: `x` is guaranteed to be pinned because it comes from `self`
@@ -677,7 +677,7 @@ impl<T> Option<T> {
677677
#[inline]
678678
#[must_use]
679679
#[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")]
681681
pub const fn as_pin_mut(self: Pin<&mut Self>) -> Option<Pin<&mut T>> {
682682
// SAFETY: `get_unchecked_mut` is never used to move the `Option` inside `self`.
683683
// `x` is guaranteed to be pinned because it comes from `self` which is pinned.
@@ -775,7 +775,7 @@ impl<T> Option<T> {
775775
/// ```
776776
#[inline]
777777
#[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")]
779779
pub const fn unwrap_or(self, default: T) -> T
780780
where
781781
T: ~const Drop,
@@ -797,7 +797,7 @@ impl<T> Option<T> {
797797
/// ```
798798
#[inline]
799799
#[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")]
801801
pub const fn unwrap_or_else<F>(self, f: F) -> T
802802
where
803803
F: ~const FnOnce() -> T,
@@ -832,7 +832,7 @@ impl<T> Option<T> {
832832
#[inline]
833833
#[track_caller]
834834
#[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")]
836836
pub const unsafe fn unwrap_unchecked(self) -> T {
837837
debug_assert!(self.is_some());
838838
match self {
@@ -863,7 +863,7 @@ impl<T> Option<T> {
863863
/// ```
864864
#[inline]
865865
#[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")]
867867
pub const fn map<U, F>(self, f: F) -> Option<U>
868868
where
869869
F: ~const FnOnce(T) -> U,
@@ -892,7 +892,7 @@ impl<T> Option<T> {
892892
/// ```
893893
#[inline]
894894
#[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")]
896896
pub const fn inspect<F>(self, f: F) -> Self
897897
where
898898
F: ~const FnOnce(&T),
@@ -925,7 +925,7 @@ impl<T> Option<T> {
925925
/// ```
926926
#[inline]
927927
#[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")]
929929
pub const fn map_or<U, F>(self, default: U, f: F) -> U
930930
where
931931
F: ~const FnOnce(T) -> U,
@@ -954,7 +954,7 @@ impl<T> Option<T> {
954954
/// ```
955955
#[inline]
956956
#[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")]
958958
pub const fn map_or_else<U, D, F>(self, default: D, f: F) -> U
959959
where
960960
D: ~const FnOnce() -> U,
@@ -991,7 +991,7 @@ impl<T> Option<T> {
991991
/// ```
992992
#[inline]
993993
#[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")]
995995
pub const fn ok_or<E>(self, err: E) -> Result<T, E>
996996
where
997997
E: ~const Drop,
@@ -1020,7 +1020,7 @@ impl<T> Option<T> {
10201020
/// ```
10211021
#[inline]
10221022
#[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")]
10241024
pub const fn ok_or_else<E, F>(self, err: F) -> Result<T, E>
10251025
where
10261026
F: ~const FnOnce() -> E,
@@ -1102,7 +1102,7 @@ impl<T> Option<T> {
11021102
/// ```
11031103
#[inline]
11041104
#[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")]
11061106
pub const fn and<U>(self, optb: Option<U>) -> Option<U>
11071107
where
11081108
T: ~const Drop,
@@ -1132,7 +1132,7 @@ impl<T> Option<T> {
11321132
/// ```
11331133
#[inline]
11341134
#[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")]
11361136
pub const fn and_then<U, F>(self, f: F) -> Option<U>
11371137
where
11381138
F: ~const FnOnce(T) -> Option<U>,
@@ -1170,7 +1170,7 @@ impl<T> Option<T> {
11701170
/// [`Some(t)`]: Some
11711171
#[inline]
11721172
#[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")]
11741174
pub const fn filter<P>(self, predicate: P) -> Self
11751175
where
11761176
T: ~const Drop,
@@ -1214,7 +1214,7 @@ impl<T> Option<T> {
12141214
/// ```
12151215
#[inline]
12161216
#[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")]
12181218
pub const fn or(self, optb: Option<T>) -> Option<T>
12191219
where
12201220
T: ~const Drop,
@@ -1240,7 +1240,7 @@ impl<T> Option<T> {
12401240
/// ```
12411241
#[inline]
12421242
#[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")]
12441244
pub const fn or_else<F>(self, f: F) -> Option<T>
12451245
where
12461246
F: ~const FnOnce() -> Option<T>,
@@ -1275,7 +1275,7 @@ impl<T> Option<T> {
12751275
/// ```
12761276
#[inline]
12771277
#[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")]
12791279
pub const fn xor(self, optb: Option<T>) -> Option<T>
12801280
where
12811281
T: ~const Drop,
@@ -1313,7 +1313,7 @@ impl<T> Option<T> {
13131313
#[must_use = "if you intended to set a value, consider assignment instead"]
13141314
#[inline]
13151315
#[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")]
13171317
pub const fn insert(&mut self, value: T) -> &mut T
13181318
where
13191319
T: ~const Drop,
@@ -1346,7 +1346,7 @@ impl<T> Option<T> {
13461346
/// ```
13471347
#[inline]
13481348
#[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")]
13501350
pub const fn get_or_insert(&mut self, value: T) -> &mut T
13511351
where
13521352
T: ~const Drop,
@@ -1381,7 +1381,7 @@ impl<T> Option<T> {
13811381
/// ```
13821382
#[inline]
13831383
#[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")]
13851385
pub const fn get_or_insert_default(&mut self) -> &mut T
13861386
where
13871387
T: ~const Default,
@@ -1413,7 +1413,7 @@ impl<T> Option<T> {
14131413
/// ```
14141414
#[inline]
14151415
#[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")]
14171417
pub const fn get_or_insert_with<F>(&mut self, f: F) -> &mut T
14181418
where
14191419
F: ~const FnOnce() -> T,
@@ -1497,7 +1497,7 @@ impl<T> Option<T> {
14971497
/// assert_eq!(x.zip(z), None);
14981498
/// ```
14991499
#[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")]
15011501
pub const fn zip<U>(self, other: Option<U>) -> Option<(T, U)>
15021502
where
15031503
T: ~const Drop,
@@ -1538,7 +1538,7 @@ impl<T> Option<T> {
15381538
/// assert_eq!(x.zip_with(None, Point::new), None);
15391539
/// ```
15401540
#[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")]
15421542
pub const fn zip_with<U, F, R>(self, other: Option<U>, f: F) -> Option<R>
15431543
where
15441544
F: ~const FnOnce(T, U) -> R,
@@ -1621,7 +1621,7 @@ impl<T: Copy> Option<&mut T> {
16211621
/// ```
16221622
#[must_use = "`self` will be dropped if the result is not used"]
16231623
#[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")]
16251625
pub const fn copied(self) -> Option<T> {
16261626
match self {
16271627
Some(&mut t) => Some(t),
@@ -1713,7 +1713,7 @@ impl<T: Default> Option<T> {
17131713
/// [`FromStr`]: crate::str::FromStr
17141714
#[inline]
17151715
#[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")]
17171717
pub const fn unwrap_or_default(self) -> T
17181718
where
17191719
T: ~const Default,
@@ -1741,7 +1741,7 @@ impl<T: Deref> Option<T> {
17411741
/// assert_eq!(x.as_deref(), None);
17421742
/// ```
17431743
#[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")]
17451745
pub const fn as_deref(&self) -> Option<&T::Target>
17461746
where
17471747
T: ~const Deref,
@@ -1769,7 +1769,7 @@ impl<T: DerefMut> Option<T> {
17691769
/// }), Some("HEY".to_owned().as_mut_str()));
17701770
/// ```
17711771
#[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")]
17731773
pub const fn as_deref_mut(&mut self) -> Option<&mut T::Target>
17741774
where
17751775
T: ~const DerefMut,

0 commit comments

Comments
 (0)