| 1 | #[cfg(feature = "std")] |
| 2 | pub(craterust-analyzer cargo anyhow 1.0.103 crate/) use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::backtracerust-analyzer cargo std https://github.com/rust-lang/rust/library/std backtrace/::Backtracerust-analyzer cargo std https://github.com/rust-lang/rust/library/std backtrace/Backtrace#; |
| 3 | |
| 4 | #[cfg(not(feature = "std"))] |
| 5 | pub(craterust-analyzer cargo anyhow 1.0.103 crate/) enum Backtrace {} |
| 6 | |
| 7 | #[cfg(feature = "std")] |
| 8 | macro_rules! backtracerust-analyzer cargo anyhow 1.0.103 backtrace/backtrace! { |
| 9 | () => { |
| 10 | Some(std::backtrace::Backtrace::capture()) |
| 11 | }; |
| 12 | } |
| 13 | |
| 14 | #[cfg(not(feature = "std"))] |
| 15 | macro_rules! backtrace { |
| 16 | () => { |
| 17 | None |
| 18 | }; |
| 19 | } |
| 20 | |
| 21 | #[cfg(error_generic_member_access)] |
| 22 | macro_rules! backtrace_if_absent { |
| 23 | ($err:expr) => { |
| 24 | match $crate::nightly::request_ref_backtrace($err as &dyn core::error::Error) { |
| 25 | Some(_) => None, |
| 26 | None => backtrace!(), |
| 27 | } |
| 28 | }; |
| 29 | } |
| 30 | |
| 31 | #[cfg(all(not(error_generic_member_access), feature = "std"))] |
| 32 | macro_rules! backtrace_if_absentrust-analyzer cargo anyhow 1.0.103 backtrace/backtrace_if_absent! { |
| 33 | ($err:expr) => { |
| 34 | backtrace!() |
| 35 | }; |
| 36 | } |
| 37 | |
| 38 | #[cfg(all(not(anyhow_no_core_error), not(feature = "std")))] |
| 39 | macro_rules! backtrace_if_absent { |
| 40 | ($err:expr) => { |
| 41 | None |
| 42 | }; |
| 43 | } |
| 44 | |
| 45 | fn _assert_send_syncrust-analyzer cargo anyhow 1.0.103 backtrace/_assert_send_sync().() { |
| 46 | fn assertrust-analyzer cargo anyhow 1.0.103 backtrace/assert().<T: Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# + Syncrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sync#>() {} |
| 47 | assertrust-analyzer cargo anyhow 1.0.103 backtrace/assert().::<Backtracerust-analyzer cargo std https://github.com/rust-lang/rust/library/std backtrace/Backtrace#>(); |
| 48 | } |