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

Don't use mem::transmute in SignalFd #1489

Merged
merged 2 commits into from
Aug 18, 2021
Merged

Don't use mem::transmute in SignalFd #1489

merged 2 commits into from
Aug 18, 2021

Conversation

asomers
Copy link
Member

@asomers asomers commented Aug 11, 2021

There was a better case for using it before mem::uninitialized was
available, but not great.  Even before then, mem::zeroed could've been
used instead.

Issue #373

mem::size_of has been a const fn since Rust 1.24.0.  Use it.
There was a better case for using it before mem::uninitialized was
available, but not great.  Even before then, mem::zeroed could've been
used instead.

Issue nix-rust#373
@asomers
Copy link
Member Author

asomers commented Aug 18, 2021

bors r+

bors bot added a commit that referenced this pull request Aug 18, 2021
1489: Don't use mem::transmute in SignalFd r=asomers a=asomers

    There was a better case for using it before mem::uninitialized was
    available, but not great.  Even before then, mem::zeroed could've been
    used instead.
    
    Issue #373


Co-authored-by: Alan Somers <[email protected]>
@bors
Copy link
Contributor

bors bot commented Aug 18, 2021

Timed out.

@asomers
Copy link
Member Author

asomers commented Aug 18, 2021

bors retry

@bors bors bot merged commit 05657e2 into nix-rust:master Aug 18, 2021
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