File tree 6 files changed +1
-8
lines changed
6 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( allow_internal_unstable) ]
2
- #![ feature( bool_to_option) ]
3
2
#![ feature( const_fn) ]
4
3
#![ feature( const_panic) ]
5
4
#![ feature( extend_one) ]
Original file line number Diff line number Diff line change 1
1
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
2
- #![ feature( bool_to_option) ]
3
2
#![ feature( core_intrinsics) ]
4
3
#![ feature( crate_visibility_modifier) ]
5
4
#![ feature( drain_filter) ]
Original file line number Diff line number Diff line change 1
1
//! The main parser interface.
2
2
3
- #![ feature( bool_to_option) ]
4
3
#![ feature( crate_visibility_modifier) ]
5
4
#![ feature( bindings_after_at) ]
6
5
#![ feature( iter_order_by) ]
Original file line number Diff line number Diff line change @@ -23,12 +23,10 @@ impl bool {
23
23
/// # Examples
24
24
///
25
25
/// ```
26
- /// #![feature(bool_to_option)]
27
- ///
28
26
/// assert_eq!(false.then(|| 0), None);
29
27
/// assert_eq!(true.then(|| 0), Some(0));
30
28
/// ```
31
- #[ unstable ( feature = "bool_to_option " , issue = "64260 " ) ]
29
+ #[ stable ( feature = "lazy_bool_to_option " , since = "1.50.0 " ) ]
32
30
#[ inline]
33
31
pub fn then < T , F : FnOnce ( ) -> T > ( self , f : F ) -> Option < T > {
34
32
if self { Some ( f ( ) ) } else { None }
Original file line number Diff line number Diff line change 227
227
#![ feature( asm) ]
228
228
#![ feature( associated_type_bounds) ]
229
229
#![ feature( atomic_mut_ptr) ]
230
- #![ feature( bool_to_option) ]
231
230
#![ feature( box_syntax) ]
232
231
#![ feature( c_variadic) ]
233
232
#![ feature( cfg_accessible) ]
Original file line number Diff line number Diff line change 23
23
#![ cfg_attr( any( unix, target_os = "cloudabi" ) , feature( libc) ) ]
24
24
#![ feature( rustc_private) ]
25
25
#![ feature( nll) ]
26
- #![ feature( bool_to_option) ]
27
26
#![ feature( available_concurrency) ]
28
27
#![ feature( internal_output_capture) ]
29
28
#![ feature( panic_unwind) ]
You can’t perform that action at this time.
0 commit comments