Skip to content

Deriving structs with backtrace fails since fn backtrace has been removed from Error #177

Closed
@Systemcluster

Description

@Systemcluster

As of rust-lang/rust#99431 fn backtrace is not part of Error anymore. This causes derives with backtrace to fail; And the following example results in a compilation error.

method `backtrace` is not a member of trait `std::error::Error`
not a member of trait `std::error::Error`
#[derive(Error, Debug)]
#[error("Platform Error {code}")]
pub struct PlatformError {
    backtrace: Backtrace,
    code:      i32,
}

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