Skip to content

Commit

Permalink
Merge pull request #142 from dtolnay/backtrace
Browse files Browse the repository at this point in the history
Indicate a doc_cfg on the Error backtrace() method
  • Loading branch information
dtolnay authored Mar 20, 2021
2 parents fea4d8a + a476ec4 commit 7e85bae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ impl Error {
///
/// [tracking]: https://github.com/rust-lang/rust/issues/53487
#[cfg(backtrace)]
#[cfg_attr(doc_cfg, doc(cfg(nightly)))]
pub fn backtrace(&self) -> &Backtrace {
unsafe { ErrorImpl::backtrace(self.inner.by_ref()) }
}
Expand Down

0 comments on commit 7e85bae

Please sign in to comment.