T7TIYYVIKIUTGJZQDO47KN4643XSYSGC4LDE2FJDQ47GG5GCVWPAC
#[cfg(backtrace)]
macro_rules! backtrace_if_absent {
($err:expr) => {
match $err.backtrace() {
Some(_) => None,
None => Some(Backtrace::capture()),
}
};
}
#[cfg(not(backtrace))]
macro_rules! backtrace_if_absent {
($err:expr) => {
None
};
}
// Captured here instead of in Error::construct to have one fewer layer
// of wrapping visible in the backtrace.
#[cfg(backtrace)]
let backtrace = match error.backtrace() {
Some(_) => None,
None => Some(Backtrace::capture()),
};
#[cfg(not(backtrace))]
let backtrace = None;
let backtrace = backtrace_if_absent!(error);