Weird compilation error when compiling project on nightly

I'm getting this error when trying to compile my bevy project on nightly:

error[E0308]: mismatched types
  --> /Users/thomasalban/.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

have I done something wrong, or is it an issue with accesskit_macros?

I can confirm it's a regression.

Ah ha, I think it's this.

2 Likes

Thanks for the heads up.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.