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

no method named message found for reference &PanicHookInfo<'_> in the current scope #13

Closed
HurricanePootis opened this issue Jun 14, 2024 · 5 comments

Comments

@HurricanePootis
Copy link

System

Arch Linux
rustup nightly

Build environment

Using the AUR script, trying to update to 1.4.3 🐱

The error 😟

error[E0599]: no method named `message` found for reference `&PanicHookInfo<'_>` in the current scope
  --> src/main.rs:60:31
   |
60 |         if let Some(m) = info.message() {
   |                               ^^^^^^^ method not found in `&PanicHookInfo<'_>`

This happens on 1.4.1 through 1.4.3, so maybe perhaps rust nightly changed something.

@ktwrd

This comment was marked as outdated.

@ktwrd
Copy link
Owner

ktwrd commented Jun 14, 2024

Actually nevermind, that's really weird. I made a fresh github codespace and installed rustup (and nightly) and the build didn't work at all? I've made a tiny change so the commit workflow runs and if that fails then I have no bloody idea why it's suddenly broken!

@ktwrd
Copy link
Owner

ktwrd commented Jun 14, 2024

Alrighty, so PanicHookInfo::message() was removed, and is now only available via PanicInfo::message(). (caused by rust-lang/rust#115974)

I'll be looking into a fix in a couple of hours, since I don't want to spend too much money on Github Codespaces.

@ktwrd
Copy link
Owner

ktwrd commented Jun 14, 2024

Forced the version to be whatever is on my thinkpad 1.80.0-nightly 2024-05-24. fd65356

@ktwrd
Copy link
Owner

ktwrd commented Jun 14, 2024

Confirmed fixed in the latest action.

https://github.com/ktwrd/beans-rs/actions/runs/9514025257

@ktwrd ktwrd closed this as completed Jun 14, 2024
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

2 participants