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

use of deprecated type alias std::panic::PanicInfo: use PanicHookInfo instead #159

Closed
4yman-0 opened this issue Oct 28, 2024 · 2 comments · Fixed by #160
Closed

use of deprecated type alias std::panic::PanicInfo: use PanicHookInfo instead #159

4yman-0 opened this issue Oct 28, 2024 · 2 comments · Fixed by #160

Comments

@4yman-0
Copy link

4yman-0 commented Oct 28, 2024

Warning log:

warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead
 --> src/main.rs:8:5
  |
8 |     setup_panic!(); // <-- initialize human-panic
  |     ^^^^^^^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default
  = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info)
@epage
Copy link
Collaborator

epage commented Oct 28, 2024

Are you using v1? Upgrading to v2 should fix this deprecation message.

@4yman-0
Copy link
Author

4yman-0 commented Oct 28, 2024

Yes. I'm on v1.2.2

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

Successfully merging a pull request may close this issue.

2 participants