Skip to content

no implementation for 'u32 & i32' #392

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Kethku opened this issue Aug 26, 2020 · 3 comments
Closed

no implementation for 'u32 & i32' #392

Kethku opened this issue Aug 26, 2020 · 3 comments

Comments

@Kethku
Copy link
Contributor

Kethku commented Aug 26, 2020

I recently updated skia-safe in neovide by running cargo update. This updated a number of packages, but when trying to build I get the following error:

error[E0277]: no implementation for `u32 & i32`
   --> C:\Users\keith\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\skia-safe-0.32.1\src\gpu\vk.rs:129:31
    |
129 |         ((self.deref() >> 12) & 0x3ff) as _
    |                               ^ no implementation for `u32 & i32`
    |
    = help: the trait `std::ops::BitAnd<i32>` is not implemented for `u32`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `skia-safe`.

I'm not sure when this happened and am trying to narrow down which version this appears in. Is this a known issue?

@Kethku
Copy link
Contributor Author

Kethku commented Aug 26, 2020

I updated rust and the issue went away. Is there documented a minimum version of rust somewhere required to build skia-safe? Regardless I'm closing as my issue is fixed.

@Kethku Kethku closed this as completed Aug 26, 2020
@pragmatrix
Copy link
Member

This could be related to rust-lang/rust#68951, which Rust 1.45.2 compiles just fine.

Is this a known issue?

No, the code above was added fairly recently.

Is there documented a minimum version of rust somewhere required to build skia-safe?

Hmm, this could only be maintained by building with a specific Rust version on the CI with the nice effect of having reproducible builds and binaries. I'll think about that.

@Kethku
Copy link
Contributor Author

Kethku commented Aug 26, 2020

Definitely not urgent. Just a passing thought. Thank you for your awesome work.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants