Skip to content

Avoid an extra alloca/memcpy when auto-ref'ing fat pointers #28020

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

Merged
merged 1 commit into from
Aug 27, 2015

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented Aug 26, 2015

r? @eddyb -- we talked about this on IRC a while back but I only now managed to get the change done.

auto_ref() handles fat pointers just fine and unlike ref_fat_ptr() does so
without creating an unnecessary copy of the pointer.
@dotdash dotdash force-pushed the ref_fat_ptr_be_gone branch from 99271c4 to 05d3696 Compare August 26, 2015 20:05
@dotdash dotdash changed the title Remove ref_fat_ptr and the unnecessary copies it creates Avoid an extra alloca/memcpy when auto-ref'ing fat pointers Aug 26, 2015
@eddyb
Copy link
Member

eddyb commented Aug 26, 2015

@bors r+ Sweet!

@bors
Copy link
Collaborator

bors commented Aug 26, 2015

📌 Commit 05d3696 has been approved by eddyb

bors added a commit that referenced this pull request Aug 27, 2015
r? @eddyb -- we talked about this on IRC a while back but I only now managed to get the change done.
@bors
Copy link
Collaborator

bors commented Aug 27, 2015

⌛ Testing commit 05d3696 with merge ab21fe5...

@bors bors merged commit 05d3696 into rust-lang:master Aug 27, 2015
@dotdash dotdash deleted the ref_fat_ptr_be_gone branch January 15, 2016 08:40
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.

3 participants