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

Remove push_unchecked #413

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

antiguru
Copy link
Member

@antiguru antiguru commented Nov 9, 2023

On recent Rust compilers, it produces the same assembly as Vec::push, so there is no benefit in keeping the function around, besides that it avoids occasionally nerd-sniping people in trying to understand Rust's UB and how to write the function correctly.

On recent Rust compilers, it produces the same assembly as `Vec::push`, so
there is no benefit in keeping the function around, besides that it avoids
occasionally nerd-sniping people in trying to understand Rust's UB and how
to write the function correctly.

Signed-off-by: Moritz Hoffmann <[email protected]>
Copy link
Member

@frankmcsherry frankmcsherry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Down with unsafe!

@frankmcsherry frankmcsherry merged commit 6406abe into TimelyDataflow:master Nov 9, 2023
1 check passed
@antiguru antiguru deleted the no_push_unchecked branch November 9, 2023 02:27
@frankmcsherry frankmcsherry mentioned this pull request Nov 12, 2023
This was referenced Oct 29, 2024
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.

2 participants