Skip to content

Docs talk about limitations of backtrace in the whatever type based on backtrace not being stable yet, but backtrace has now been stabilized #525

@Frederik-Baetens

Description

@Frederik-Baetens

Docs state:

When wrapping errors, only the backtrace from the shallowest function is guaranteed to be available. If you need the deepest possible trace, consider creating a custom error type and using #[snafu(backtrace)] on the source field. If a best-effort attempt is sufficient, see the backtrace method.

When the standard library stabilizes backtrace support, this behavior may change.

But backtrace has since been stabilized: rust-lang/rust#99573

https://docs.rs/snafu/latest/snafu/struct.Whatever.html#limitations

I'm raising this issue to inquire about what this could mean for snafu. Does this enable improvements to snafu's backtrace support? Or should things stay as they are with only a minor tweak to the docs language?

If you could provide some guidance on how the stabilization of backtrace could improve snafu, I'd love to take a crack at implementing that improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions