File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ impl bool {
99 /// # Examples
1010 ///
1111 /// ```
12- /// #![feature(bool_to_option)]
13- ///
1412 /// assert_eq!(false.then_some(0), None);
1513 /// assert_eq!(true.then_some(0), Some(0));
1614 /// ```
17- #[ unstable ( feature = "bool_to_option" , issue = "80967 " ) ]
15+ #[ stable ( feature = "bool_to_option" , since = "1.62.0 " ) ]
1816 #[ rustc_const_unstable( feature = "const_bool_to_option" , issue = "91917" ) ]
1917 #[ inline]
2018 pub const fn then_some < T > ( self , t : T ) -> Option < T >
Original file line number Diff line number Diff line change 33#![ feature( array_methods) ]
44#![ feature( array_windows) ]
55#![ feature( bench_black_box) ]
6- #![ feature( bool_to_option) ]
76#![ feature( box_syntax) ]
87#![ feature( cell_update) ]
98#![ feature( const_assume) ]
You can’t perform that action at this time.
0 commit comments