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

Span for "reinterpret_cast called on types with different size" error is incorrect #2973

Closed
jdm opened this issue Jul 20, 2012 · 1 comment
Closed

Comments

@jdm
Copy link
Contributor

jdm commented Jul 20, 2012

I'll find some time to make a testcase, but I'm currently seeing this:

/Users/jdm/src/servo/src/servo/servo.rc:1:0: 1:0 error: reinterpret_cast called on types with different size: uint (8) to {rc: uint,td: *core::sys::type_desc,next: *(),prev: *(),payload: js::rust::compartment} (40)
/Users/jdm/src/servo/src/servo/servo.rc:1 #[link(name = "servo",
                                          ^
@nikomatsakis
Copy link
Contributor

This is almost certainly a dup of #1972.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue Jul 10, 2023
test and fix return place alias restrictions
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

2 participants