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

Use stable MaybeUninit when we can (feature detected) #127

Merged
merged 2 commits into from
Jul 10, 2019
Merged

Conversation

bluss
Copy link
Owner

@bluss bluss commented Jul 10, 2019

As a follow up on #114, now that we have stable MaybeUninit, expand the scope of the feature detection to use it on stable when we can.

This is for the 0.4 branch of arrayvec, which is the current release (0.5 / 1.0 pending), so that we reach the largest number of users with the improvement.

Closes #105 (caveat, for Rust 1.36 or later users)

(Also remove the size check since we can't rely on it, even if we want
to ensure it has no overhead for the bytes case.)
@bluss bluss changed the base branch from master to 0.4 July 10, 2019 15:01
@bluss bluss closed this Jul 10, 2019
@bluss bluss reopened this Jul 10, 2019
@bluss bluss merged commit c155b40 into 0.4 Jul 10, 2019
@bluss bluss deleted the stable-maybe-uninit branch July 10, 2019 15:21
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