Skip to content
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

Update examples to work latest nightly rustc #396

Open
mukilan opened this issue Jun 25, 2023 · 0 comments
Open

Update examples to work latest nightly rustc #396

mukilan opened this issue Jun 25, 2023 · 0 comments

Comments

@mukilan
Copy link
Member

mukilan commented Jun 25, 2023

Context:
Recent PRs are failing in CI because examples don't compile.

error: could not compile `webrender` (lib) due to previous error
   Compiling webrender v0.60.0
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/webrender-0.60.0/src/record.rs:34:13
   |
34 |             mem::transmute::<TypeId, u64>(TypeId::of::<ApiMsg>())
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `TypeId` (128 bits)
   = note: target type: `u64` (64 bits)

The example code uses webrender v0.60.0 which is quite old and the offending code causing above error has been removed from webrender servo/webrender@e8d2d7d6

We should publish a new webrender version to crates.io and update the examples as necessary.

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

No branches or pull requests

1 participant