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

Build Error: no method named as_raw found for reference &Waker in the c urrent scope #3403

Closed
omani opened this issue Oct 8, 2024 · 4 comments

Comments

@omani
Copy link

omani commented Oct 8, 2024

error[E0599]: no method named `as_raw` found for reference `&Waker` in the c
 urrent scope
   --> /home/sun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embassy-ex
 ecutor-0.6.0/src/raw/waker.rs:53:35
    |
 53 |             let raw_waker = waker.as_raw();
    |                                   ^^^^^^
    |
 help: there is a method `as_ref` with a similar name
    |
 53 |             let raw_waker = waker.as_ref();
    |                                   ~~~~~~

 For more information about this error, try `rustc --explain E0599`.
 error: could not compile `embassy-executor` (lib) due to 1 previous error

seems to come from this PR #3059

@Dirbaio
Copy link
Member

Dirbaio commented Oct 8, 2024

This happens because you're using a too old nightly, try updating it.

@omani
Copy link
Author

omani commented Oct 8, 2024

what does "too old" mean in the context of nightly? a few days?

$ cargo version
cargo 1.83.0-nightly (ad074abe3 2024-10-04)
$ rustc --version
rustc 1.83.0-nightly (9096f4faf 2024-10-05)

@Dirbaio
Copy link
Member

Dirbaio commented Oct 8, 2024

ah apologies, it's the other way around. if you're using embassy-executor v0.6.0 from crates.io you're using a too new nightly. Either use an older nightly (before Sep 5th), or use embassy-executor from latest git.

This is the PR that made the breaking change in Rust rust-lang/rust#129919
this is the embassy-executor update #3316

@omani
Copy link
Author

omani commented Oct 8, 2024

thanks.

@omani omani closed this as completed Oct 8, 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