Skip to content

Replace most instances of mem::uninitialized with mem::MaybeUninit #1114

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 3 commits into from
Sep 4, 2019

Conversation

asomers
Copy link
Member

@asomers asomers commented Aug 31, 2019

Only two instances remain:

  • For the deprecated sys::socket::CmsgSpace::new. We should probably
    just remove that method.

  • For sys::termios::Termios::default_uninit. This will require some
    more thought.

@asomers
Copy link
Member Author

asomers commented Sep 3, 2019

@Susurrus this is starting to hold up other PRs, so I'm going to merge it tonight.

Only two instances remain:

* For the deprecated sys::socket::CmsgSpace::new.  We should probably
  just remove that method.

* For sys::termios::Termios::default_uninit.  This will require some
  more thought.

Fixes nix-rust#1096
Travis's "stable" images are stuck on Rust 1.35.0
On Travis (and only on Travis) this test crashes.  It hits an internal
assertion within glibc.  It happens reliably with rustc 1.37.0.  Ignore
the test until Travis updates its images; then we'll try again.

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

asomers commented Sep 4, 2019

bors r+

bors bot added a commit that referenced this pull request Sep 4, 2019
1114: Replace most instances of mem::uninitialized with mem::MaybeUninit r=asomers a=asomers

Only two instances remain:

* For the deprecated sys::socket::CmsgSpace::new.  We should probably
  just remove that method.

* For sys::termios::Termios::default_uninit.  This will require some
  more thought.

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

bors bot commented Sep 4, 2019

Build succeeded

@bors bors bot merged commit 43a71ff into nix-rust:master Sep 4, 2019
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