We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fee1f4b commit 6a263e1Copy full SHA for 6a263e1
src/error.rs
@@ -84,6 +84,12 @@ impl Error {
84
/// capturing them all over the place all the time.
85
///
86
/// [tracking]: https://github.com/rust-lang/rust/issues/53487
87
+ ///
88
+ /// Note: This function can be called whether or not backtraces
89
+ /// are enabled and available. It will return a `None` variant if
90
+ /// compiled on a toolchain that does not support backtraces, or
91
+ /// if executed without backtraces enabled with
92
+ /// `RUST_LIB_BACKTRACE=1`.
93
#[cfg(backtrace)]
94
pub fn backtrace(&self) -> Option<&std::backtrace::Backtrace> {
95
let backtrace = self.error.backtrace();
0 commit comments