-
Notifications
You must be signed in to change notification settings - Fork 673
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
Stamp out transmute except in certain cases #373
Comments
All occurences. We can discuss each case and tick them off.
|
This saves code in several separate places that need to do this separately. At the same time, remove a few uses of mem::transmute that were implementing TryFrom or similar functionality. Issue nix-rust#373
This saves code in several separate places that need to do this separately. At the same time, remove a few uses of mem::transmute that were implementing TryFrom or similar functionality. Issue nix-rust#373
This saves code in several separate places that need to do this separately. At the same time, remove a few uses of mem::transmute that were implementing TryFrom or similar functionality. Issue nix-rust#373
1485: Replace some mem::transmute calls in signal.rs with pointer casts r=asomers a=asomers Issue #373 Co-authored-by: Alan Somers <[email protected]>
1484: Optionally implement TryFrom in libc_enum! r=asomers a=asomers This saves code in several separate places that need to do this separately. At the same time, remove a few uses of mem::transmute that were implementing TryFrom or similar functionality. Issue #373 Co-authored-by: Alan Somers <[email protected]>
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
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
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
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]>
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]>
nix is currently a bit too liberal with
mem::transmute
, using it in situations where some casts would suffice. I'd like to reduce these to a minimum becausetransmute
is a scarily big hammer.The text was updated successfully, but these errors were encountered: