Skip to content

Commit 4ebe4a8

Browse files
committed
Stabilise then
1 parent cdb694e commit 4ebe4a8

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

core/src/bool.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ impl bool {
2323
/// # Examples
2424
///
2525
/// ```
26-
/// #![feature(bool_to_option)]
27-
///
2826
/// assert_eq!(false.then(|| 0), None);
2927
/// assert_eq!(true.then(|| 0), Some(0));
3028
/// ```
31-
#[unstable(feature = "bool_to_option", issue = "64260")]
29+
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
3230
#[inline]
3331
pub fn then<T, F: FnOnce() -> T>(self, f: F) -> Option<T> {
3432
if self { Some(f()) } else { None }

std/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@
227227
#![feature(asm)]
228228
#![feature(associated_type_bounds)]
229229
#![feature(atomic_mut_ptr)]
230-
#![feature(bool_to_option)]
231230
#![feature(box_syntax)]
232231
#![feature(c_variadic)]
233232
#![feature(cfg_accessible)]

test/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#![cfg_attr(any(unix, target_os = "cloudabi"), feature(libc))]
2424
#![feature(rustc_private)]
2525
#![feature(nll)]
26-
#![feature(bool_to_option)]
2726
#![feature(available_concurrency)]
2827
#![feature(internal_output_capture)]
2928
#![feature(panic_unwind)]

0 commit comments

Comments
 (0)