Skip to content

Replace PanicInfo with PanicHookInfo #229

Open
@dtolnay

Description

@dtolnay
warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead
  --> src/main.rs:44:24
   |
44 | use std::panic::{self, PanicInfo, UnwindSafe};
   |                        ^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead
   --> src/main.rs:600:30
    |
600 |     type PanicHook = dyn Fn(&PanicInfo) + Sync + Send + 'static;
    |                              ^^^^^^^^^

PanicHookInfo is only available in Rust 1.82+.

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