You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled onto a bizarre error raised by the borrow checker if at least one of the function arguments is a reference and return type is ocaml::Pointer.
It's not possible to make keypair_sign<'a> (a hack anyways) since OCaml functions may not contain generics but it is possible to hack using in_band_lifetimes feature:
feature(in_band_lifetimes) was removed from nightly when rust-lang/rust#93845 landed; this issue can probably be closed ah, but the issue with lifetimes still isn't resolved 🤦
I stumbled onto a bizarre error raised by the borrow checker if at least one of the function arguments is a reference and return type is
ocaml::Pointer
.Example code that raised the error:
It's not possible to make
keypair_sign<'a>
(a hack anyways) sinceOCaml functions may not contain generics
but it is possible to hack usingin_band_lifetimes
feature:This error is not raised when arguments are
Vec<u8>
etc.The text was updated successfully, but these errors were encountered: