File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -881,15 +881,13 @@ impl<T: Copy> Option<&T> {
881
881
/// # Examples
882
882
///
883
883
/// ```
884
- /// #![feature(copied)]
885
- ///
886
884
/// let x = 12;
887
885
/// let opt_x = Some(&x);
888
886
/// assert_eq!(opt_x, Some(&12));
889
887
/// let copied = opt_x.copied();
890
888
/// assert_eq!(copied, Some(12));
891
889
/// ```
892
- #[ unstable ( feature = "copied" , issue = "57126 " ) ]
890
+ #[ stable ( feature = "copied" , since = "1.35.0 " ) ]
893
891
pub fn copied ( self ) -> Option < T > {
894
892
self . map ( |& t| t)
895
893
}
@@ -902,15 +900,13 @@ impl<T: Copy> Option<&mut T> {
902
900
/// # Examples
903
901
///
904
902
/// ```
905
- /// #![feature(copied)]
906
- ///
907
903
/// let mut x = 12;
908
904
/// let opt_x = Some(&mut x);
909
905
/// assert_eq!(opt_x, Some(&mut 12));
910
906
/// let copied = opt_x.copied();
911
907
/// assert_eq!(copied, Some(12));
912
908
/// ```
913
- #[ unstable ( feature = "copied" , issue = "57126 " ) ]
909
+ #[ stable ( feature = "copied" , since = "1.35.0 " ) ]
914
910
pub fn copied ( self ) -> Option < T > {
915
911
self . map ( |& mut t| t)
916
912
}
Original file line number Diff line number Diff line change 1
1
#![ feature( box_syntax) ]
2
2
#![ feature( cell_update) ]
3
- #![ feature( copied) ]
4
3
#![ feature( core_private_bignum) ]
5
4
#![ feature( core_private_diy_float) ]
6
5
#![ feature( dec2flt) ]
You can’t perform that action at this time.
0 commit comments