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

Replace PanicInfo with PanicHookInfo #229

Open
dtolnay opened this issue Jul 22, 2024 · 0 comments
Open

Replace PanicInfo with PanicHookInfo #229

dtolnay opened this issue Jul 22, 2024 · 0 comments

Comments

@dtolnay
Copy link
Owner

dtolnay commented Jul 22, 2024

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+.

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

1 participant