Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly requirement on backtraces #314

Closed
arcanis opened this issue Aug 15, 2024 · 1 comment
Closed

Nightly requirement on backtraces #314

arcanis opened this issue Aug 15, 2024 · 1 comment

Comments

@arcanis
Copy link

arcanis commented Aug 15, 2024

I noticed that std::backtrace::Backtrace was standardized, but thiserror seems to still require a nightly build and special feature to have support for #[backtrace] - is that expected? Is there a way to have a (prehaps just basic) support for stacktrace captures from within the From implementation using only stable features?

@dtolnay
Copy link
Owner

dtolnay commented Aug 15, 2024

It is expected. Only the Backtrace type has been stabilized so far, not backtraces in the Error trait.

Storing backtraces in From without exposing them in the Error impl is not supported, but you can write your own From impls or use a different From derive macro to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants