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

Mismatched type in accesskit_macos dependency #23

Open
maaku opened this issue Aug 17, 2024 · 2 comments
Open

Mismatched type in accesskit_macos dependency #23

maaku opened this issue Aug 17, 2024 · 2 comments

Comments

@maaku
Copy link

maaku commented Aug 17, 2024

On a fresh checkout on macOS, running cargo run --example complex generates the following error:

error[E0308]: mismatched types
  --> /Users/mark/.cargo/registry/src/index.crates.io-6f17d22bba15001f/accesskit_macos-0.15.0/src/patch.rs:44:13
   |
44 |             focus_forwarder as unsafe extern "C" fn(_, _) -> _,
   |             ^^^^^^^^^^^^^^^ one type is more general than the other
   |
   = note: expected fn pointer `unsafe extern "C" fn(&NSWindow, objc2::runtime::Sel) -> _`
              found fn pointer `unsafe extern "C" for<'a> fn(&'a NSWindow, objc2::runtime::Sel) -> _`

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

accesskit_macos is a dependency pulled in by bevy so this shouldn't be quill's problem per se, but notably the bevy examples compile out of the box. I know that quill is using nightly features... maybe that's the source of the error?

Sorry for providing just a drive-by issue, but I was just interested in trying out quill and not deeply invested in this yet.

@viridia
Copy link
Owner

viridia commented Aug 17, 2024

Hmmm, I am also running on MacOS and I haven't encountered this.

@DataTriny
Copy link

This was probably a Rust bug, see bevyengine/bevy#14956.

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

3 participants