Skip to content

std: Add a backtrace module#64154

Merged
bors merged 1 commit intorust-lang:masterfrom
alexcrichton:std-backtrace
Sep 11, 2019
Merged

std: Add a backtrace module#64154
bors merged 1 commit intorust-lang:masterfrom
alexcrichton:std-backtrace

Conversation

@alexcrichton
Copy link
Member

This commit adds a backtrace module to the standard library, as
designed in RFC 2504. The Backtrace type is intentionally very
conservative, effectively only allowing capturing it and printing it.

Additionally this commit also adds a backtrace method to the Error
trait which defaults to returning None, as specified in RFC 2504.
More information about the design here can be found in RFC 2504 and in
the tracking issue.

Implementation-wise this is all based on the backtrace crate and very
closely mirrors the backtrace::Backtrace type on crates.io. Otherwise
it's pretty standard in how it handles everything internally.

cc #53487

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants