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 {
9
9
/// # Examples
10
10
///
11
11
/// ```
12
- /// #![feature(bool_to_option)]
13
- ///
14
12
/// assert_eq!(false.then_some(0), None);
15
13
/// assert_eq!(true.then_some(0), Some(0));
16
14
/// ```
17
- #[ unstable ( feature = "bool_to_option" , issue = "80967 " ) ]
15
+ #[ stable ( feature = "bool_to_option" , since = "1.62.0 " ) ]
18
16
#[ rustc_const_unstable( feature = "const_bool_to_option" , issue = "91917" ) ]
19
17
#[ inline]
20
18
pub const fn then_some < T > ( self , t : T ) -> Option < T >
Original file line number Diff line number Diff line change 3
3
#![ feature( array_methods) ]
4
4
#![ feature( array_windows) ]
5
5
#![ feature( bench_black_box) ]
6
- #![ feature( bool_to_option) ]
7
6
#![ feature( box_syntax) ]
8
7
#![ feature( cell_update) ]
9
8
#![ feature( const_assume) ]
You can’t perform that action at this time.
0 commit comments