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

Switch to using pointers everywhere with arbitrary_self_types #7

Merged
merged 11 commits into from
Oct 18, 2019

Conversation

alecmocatta
Copy link
Owner

This PR removes uninitialized_box as well as uninitialized fat references, replacing them with fat pointers thanks to the arbitrary_self_types feature.

Two instances of uninitialized references remains. One is blocked on rust-lang/rfcs#2017. It could be removed if we're okay with <dyn Trait as Type>::dangling() returning pointers with a fixed alignment (say 64 or 4096?). The other is blocked on getting slice length from a pointer; this could be removed if we're okay with assuming the layout and getting it ourselves.

@alecmocatta alecmocatta changed the title Switch to using pointers everywhere with arbitrary_self_types WIP: Switch to using pointers everywhere with arbitrary_self_types Oct 18, 2019
@alecmocatta alecmocatta changed the title WIP: Switch to using pointers everywhere with arbitrary_self_types Switch to using pointers everywhere with arbitrary_self_types Oct 18, 2019
@alecmocatta alecmocatta merged commit 998f4f6 into master Oct 18, 2019
@alecmocatta alecmocatta deleted the v0.2.0 branch October 18, 2019 13:54
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

Successfully merging this pull request may close these issues.

1 participant