rapier icon indicating copy to clipboard operation
rapier copied to clipboard

Examples are broken on macOS when compiling with nightly

Open polina4096 opened this issue 1 year ago • 1 comments

Examples fail to compile when following the procedure stated in the README on macOS (Apple Silicon) with nightly rustc.

error[E0308]: mismatched types
  --> /Users/polina4096/.cargo/registry/src/index.crates.io-6f17d22bba15001f/accesskit_macos-0.10.1/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) -> _`

polina4096 avatar Aug 25 '24 23:08 polina4096

This seems related to accesskit, I imagine this will get fixed in a future bevy version, but I'd be interested to know if they know about it / link an upstream issue here.

ThierryBerger avatar Aug 30 '24 15:08 ThierryBerger

This was probably a Rust bug, see https://github.com/bevyengine/bevy/issues/14956.

DataTriny avatar Nov 17 '24 14:11 DataTriny

Thank for the heads up! I'm closing then 👌

ThierryBerger avatar Nov 17 '24 19:11 ThierryBerger