Skip to content

Doesn't compile on Ruby 4.0 #376

Description

@byroot
error[E0308]: mismatched types
    --> /Users/jeanboussier/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/magnus-0.7.1/src/fiber.rs:469:21
     |
 466 |                 Value::new(rb_fiber_raise(
     |                            -------------- arguments to this function are incorrect
...
 469 |                     &e.as_rb_value() as *const VALUE,
     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability
     |
     = note: expected raw pointer `*mut u64`
                found raw pointer `*const u64`
note: function defined here
    --> /Users/jeanboussier/.rbenv/versions/4.0.0-preview3/lib/ruby/gems/4.0.0+1/gems/eppo-server-sdk-3.7.4/ext/eppo_client/target/release/build/rb-sys-7fba6798598db971/out/bindings-0.9.111-mri-arm64-darwin25-4.0.0.rs:5381:16
     |
5381 |         pub fn rb_fiber_raise(fiber: VALUE, argc: ::std::os::raw::c_int, argv: *mut VALUE)
     |                ^^^^^^^^^^^^^^

error[E0609]: no field `typed_flag` on type `&rb_sys::RTypedData`
   --> /Users/jeanboussier/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/magnus-0.7.1/src/r_typed_data.rs:202:58
    |
202 |                     let typed_flag = typed_data.as_ref().typed_flag;
    |                                                          ^^^^^^^^^^ unknown field
    |
    = note: available fields are: `basic`, `fields_obj`, `type_`, `data`

Upgrading to the latest magnus and rb_sys is supposed to solve that (but I tried and don't know enough Rust to do it myself).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions