mirror of https://github.com/rust-lang/rust.git
Rollup merge of #126384 - RalfJung:is_none_or, r=workingjubilee
add tracking issue for is_none_or This was forgotten in https://github.com/rust-lang/rust/pull/126328. Cc https://github.com/rust-lang/rust/issues/126383
This commit is contained in:
commit
f1a4f30940
|
@ -672,7 +672,7 @@ impl<T> Option<T> {
|
|||
/// ```
|
||||
#[must_use]
|
||||
#[inline]
|
||||
#[unstable(feature = "is_none_or", issue = "none")]
|
||||
#[unstable(feature = "is_none_or", issue = "126383")]
|
||||
pub fn is_none_or(self, f: impl FnOnce(T) -> bool) -> bool {
|
||||
match self {
|
||||
None => true,
|
||||
|
|
Loading…
Reference in New Issue