File tree 3 files changed +1
-5
lines changed
3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -867,8 +867,6 @@ impl<T> Option<T> {
867
867
/// # Examples
868
868
///
869
869
/// ```
870
- /// #![feature(option_replace)]
871
- ///
872
870
/// let mut x = Some(2);
873
871
/// let old = x.replace(5);
874
872
/// assert_eq!(x, Some(5));
@@ -880,7 +878,7 @@ impl<T> Option<T> {
880
878
/// assert_eq!(old, None);
881
879
/// ```
882
880
#[ inline]
883
- #[ unstable ( feature = "option_replace" , issue = "51998 " ) ]
881
+ #[ stable ( feature = "option_replace" , since = "1.31.0 " ) ]
884
882
pub fn replace ( & mut self , value : T ) -> Option < T > {
885
883
mem:: replace ( self , Some ( value) )
886
884
}
Original file line number Diff line number Diff line change 39
39
#![ feature( reverse_bits) ]
40
40
#![ feature( inner_deref) ]
41
41
#![ feature( slice_internals) ]
42
- #![ feature( option_replace) ]
43
42
#![ feature( slice_partition_dedup) ]
44
43
#![ feature( copy_within) ]
45
44
Original file line number Diff line number Diff line change 21
21
#![ feature( box_syntax) ]
22
22
#![ cfg_attr( unix, feature( libc) ) ]
23
23
#![ feature( nll) ]
24
- #![ feature( option_replace) ]
25
24
#![ feature( quote) ]
26
25
#![ feature( rustc_diagnostic_macros) ]
27
26
#![ feature( slice_sort_by_cached_key) ]
You can’t perform that action at this time.
0 commit comments