Skip to content
Myr

Capture backtraces earlier

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 310dec9 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/error.rs+2 added-1 removed
298 unmodified lines
299where300 E: StdError + Send + Sync + 'static,301{302 fn from(error: E) -> Self {303 Error::new(error)303 let backtrace = backtrace_if_absent!(error);304 Error::from_std(error, backtrace)305 }306}307308impl Deref for Error {
212 unmodified lines