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

Implement the rest of the possible casts #26

Closed
solson opened this Issue Jun 15, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@solson
Copy link
Member

solson commented Jun 15, 2016

Cast kinds:

  • Unsize from array pointer to slice pointer
  • Unsize to trait object pointer¹
  • Reify function pointer
  • Everything else²

¹ This goes along with implementing vtables and virtual method calls.

² Currently casts with same-sized source and destination are implemented by a blind copy and casts from fat pointers copy just the pointer part. This works well enough to pass most of our existing tests but it's extremely hacky. Search for the Misc case.

This will likely require multiple PRs.

@solson solson modified the milestone: Things to do before adding miri to rustc Aug 17, 2016

@solson solson closed this Sep 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.