diff options
| author | bors <bors@rust-lang.org> | 2023-04-07 08:09:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-07 08:09:20 +0000 |
| commit | b6f6104a1f62a0eec7d2e2ccdc07709fcc4c83f0 (patch) | |
| tree | 44dad4c16912704cdd0303f5b907f4ce38cb94a2 /compiler/rustc_hir_analysis/src/lib.rs | |
| parent | 97879ce24ba6fbc89b1a7a9bef5d31f73963646c (diff) | |
| parent | 443928f7e33666f83711c768ef2968090c85bc7f (diff) | |
| download | rust-b6f6104a1f62a0eec7d2e2ccdc07709fcc4c83f0.tar.gz rust-b6f6104a1f62a0eec7d2e2ccdc07709fcc4c83f0.zip | |
Auto merge of #110019 - jplatte:jplatte/stabilize-is-some-and, r=Amanieu
Stabilize is_some_and
This stabilizes the following public API:
```rust
impl<T> Option<T> {
pub fn is_some_and(self, f: impl FnOnce(T) -> bool) -> bool;
}
impl<T, E> Result<T, E> {
pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool;
pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool;
}
```
Closes #93050 (tracking issue).
`@rustbot` label +T-libs-api -T-libs
Diffstat (limited to 'compiler/rustc_hir_analysis/src/lib.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/lib.rs b/compiler/rustc_hir_analysis/src/lib.rs index 2a9025d60ab..27e56180349 100644 --- a/compiler/rustc_hir_analysis/src/lib.rs +++ b/compiler/rustc_hir_analysis/src/lib.rs @@ -70,7 +70,6 @@ This API is completely unstable and subject to change. #![feature(lazy_cell)] #![feature(slice_partition_dedup)] #![feature(try_blocks)] -#![feature(is_some_and)] #![feature(type_alias_impl_trait)] #![recursion_limit = "256"] |
