Skip to content

Error span for reinterpret_cast error is very incorrect #2091

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
jdm opened this issue Apr 1, 2012 · 1 comment
Closed

Error span for reinterpret_cast error is very incorrect #2091

jdm opened this issue Apr 1, 2012 · 1 comment
Labels
A-codegen Area: Code generation

Comments

@jdm
Copy link
Contributor

jdm commented Apr 1, 2012

socket.rc:1:0: 1:0 error: reinterpret_cast called on types with different size: socket::sockaddr4_in to socket::sockaddr_storage

This is coming from the rust-socket library currently. The actual problem line is in socket.rs.

@ghost ghost assigned catamorphism Apr 5, 2012
@catamorphism
Copy link
Contributor

reinterpret_cast always gets inlined, and spans for the bodies of inlined things are wrong. There's already a bug on this: #1972.

celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation
Projects
None yet
Development

No branches or pull requests

2 participants