diff options
| author | bors <bors@rust-lang.org> | 2023-11-13 19:46:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-13 19:46:18 +0000 |
| commit | 85b84504669c6c779fab7b96fbe5b26635067cd1 (patch) | |
| tree | c886e631cff3492babebfafb1c3e4085f7fb8186 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 531cb83fcfaa7568e2475c11e4e13ff4d9e06c01 (diff) | |
| parent | ed512e91d0318cb06ea2b3729198e64090b5648e (diff) | |
| download | rust-85b84504669c6c779fab7b96fbe5b26635067cd1.tar.gz rust-85b84504669c6c779fab7b96fbe5b26635067cd1.zip | |
Auto merge of #116866 - slanterns:inspect-stabilize, r=BurntSushi
Stabilize `result_option_inspect`
This PR stabilizes `result_option_inspect`:
```rust
// core::option
impl Option<T> {
pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self;
}
// core::result
impl Result<T, E> {
pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self;
pub fn inspect_err<F: FnOnce(&E)>(self, f: F) -> Self;
}
```
<br>
Tracking issue: https://github.com/rust-lang/rust/issues/91345.
Implementation PR: https://github.com/rust-lang/rust/pull/91346.
Closes https://github.com/rust-lang/rust/issues/91345.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
