rust/compiler/rustc_errors/src
bors 85b8450466 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.
2023-11-13 19:46:18 +00:00
..
json Use a builder instead of boolean/option arguments 2023-07-25 13:51:15 +00:00
markdown Unite bless environment variables under RUSTC_BLESS 2023-07-26 16:54:02 -04:00
annotate_snippet_emitter_writer.rs implement -Z ignore-directory-in-diagnostics-source-blocks 2023-09-15 16:22:50 +02:00
diagnostic.rs give FutureIncompatibilityReason variants more explicit names 2023-09-22 08:51:18 +02:00
diagnostic_builder.rs check-cfg: only print the list of expected names once 2023-10-12 18:39:35 +02:00
diagnostic_impls.rs Prevent promotion of const fn calls in inline consts 2023-09-21 09:00:22 +00:00
emitter.rs rustc: minor changes suggested by clippy perf lints. 2023-11-08 08:57:57 +11:00
error.rs Make translate_message return result and add tests 2023-01-08 23:35:43 +01:00
json.rs implement -Z ignore-directory-in-diagnostics-source-blocks 2023-09-15 16:22:50 +02:00
lib.rs Auto merge of #116866 - slanterns:inspect-stabilize, r=BurntSushi 2023-11-13 19:46:18 +00:00
lock.rs bump windows crate 0.46 -> 0.48 in workspace 2023-05-09 18:20:13 +03:00
registry.rs refactor: statically guarantee that current error codes are documented 2023-02-26 20:12:36 +13:00
snippet.rs Create AnnotationColumn struct to fix hard tab column numbers in errors 2023-03-28 09:18:55 -04:00
styled_buffer.rs Replace some _ == _ || _ == _s with matches!(_, _ | _)s 2023-01-30 12:26:26 +00:00
tests.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
translation.rs Restore behavior when primary bundle is missing 2023-02-23 01:14:10 +01:00