Skip to content

c-abi doesn't work with 128bit flag #15

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

Closed
Licenser opened this issue Oct 27, 2021 · 3 comments · Fixed by #16
Closed

c-abi doesn't work with 128bit flag #15

Licenser opened this issue Oct 27, 2021 · 3 comments · Fixed by #16

Comments

@Licenser
Copy link
Member

running:

cargo test --all --features c-abi,128bit

causes:

   Compiling value-trait v0.2.9-alpha.0 (/home/heinz/Projects/simd-lite/value-trait)
error[E0599]: the associated item `STABLE_ABI` exists for struct `GetTypeLayoutCtor<i128>`, but its trait bounds were not satisfied
  --> src/node.rs:15:38
   |
15 | #[cfg_attr(feature = "c-abi", derive(abi_stable::StableAbi))]
   |                                      ^^^^^^^^^^^^^^^^^^^^^ associated item cannot be called on `GetTypeLayoutCtor<i128>` due to unsatisfied trait bounds
   |
   = note: the following trait bounds were not satisfied:
           `i128: StableAbi`
   = note: this error originates in the macro `$crate::_sabi_type_layouts` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: the associated item `STABLE_ABI` exists for struct `GetTypeLayoutCtor<u128>`, but its trait bounds were not satisfied
  --> src/node.rs:15:38
   |
15 | #[cfg_attr(feature = "c-abi", derive(abi_stable::StableAbi))]
   |                                      ^^^^^^^^^^^^^^^^^^^^^ associated item cannot be called on `GetTypeLayoutCtor<u128>` due to unsatisfied trait bounds
   |
   = note: the following trait bounds were not satisfied:
           `u128: StableAbi`
   = note: this error originates in the macro `$crate::_sabi_type_layouts` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0599`.
error: could not compile `value-trait` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
@Licenser
Copy link
Member Author

@marioortizmanero it would be nice to include 128bit into the PR for abi_stable

@marioortizmanero
Copy link
Contributor

Will do! There's no support now either so I'll have to add it myself. Not sure if i128's abi is stable though.

@marioortizmanero
Copy link
Contributor

marioortizmanero commented Oct 27, 2021

Licenser added a commit that referenced this issue Oct 27, 2021
User friendliness for the win! (close #15)
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

Successfully merging a pull request may close this issue.

2 participants