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

Types of different sizes or dependently-sized types #3

Closed
zzazanz opened this issue Nov 29, 2022 · 0 comments
Closed

Types of different sizes or dependently-sized types #3

zzazanz opened this issue Nov 29, 2022 · 0 comments

Comments

@zzazanz
Copy link

zzazanz commented Nov 29, 2022

Display-link error while building servo
I use macbook and it is apple silicon(apple m1)

content of error:

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  --> /Users/user/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/display-link-0.2.0/src/macos.rs:24:16
   |
24 |     let time = mem::transmute::<_, std::time::Instant>(in_out_timestamp.host_time);
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `u64` (64 bits)
   = note: target type: `Instant` (128 bits)

For more information about this error, try `rustc --explain E0512`.
error: could not compile `display-link` due to previous error
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