Remove 2 frames of backtrace noise on Option's Context impl
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Repro: use anyhow::Context; fn main() -> anyhow::Result<()> { let result = None::<()>; result.context("...") } Before: 0: anyhow::context::<impl anyhow::Context<T,core::convert::Infallible> for core::option::Option<T>>::context::{{closure}} at /git/anyhow/src/context.rs:95:57 1: core::option::Option<T>::ok_or_else at /rustc/4b8f4319954ff2642690b9e5cbe4af352d095bf6/library/core/src/option.rs:1083:25 2: anyhow::context::<impl anyhow::Context<T,core::convert::Infallible> for core::option::Option<T>>::context at /git/anyhow/src/context.rs:95:9 3: testing::main at ./src/main.rs:5:5 After: 0: anyhow::context::<impl anyhow::Context<T,core::convert::Infallible> for core::option::Option<T>>::context at /git/anyhow/src/context.rs:99:54 1: testing::main at ./src/main.rs:5:5
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+10 added−2 removed
- other:+10 added−2 removed