diff options
author | Alan Somers <asomers@gmail.com> | 2019-08-30 23:10:22 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2019-09-03 16:25:41 -0600 |
commit | 469032433d68841ad098f03aa2b28e81235b8be8 (patch) | |
tree | a34108f1688355ebaa6d5eed8a2eecafc5d32dfa /test | |
parent | a4a465d25567f163f9552b977eb4d17435251d41 (diff) | |
download | nix-469032433d68841ad098f03aa2b28e81235b8be8.zip |
Replace most instances of mem::uninitialized with mem::MaybeUninit
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 #1096
Diffstat (limited to 'test')
-rw-r--r-- | test/sys/test_ptrace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_ptrace.rs b/test/sys/test_ptrace.rs index 24d9b522..a5630923 100644 --- a/test/sys/test_ptrace.rs +++ b/test/sys/test_ptrace.rs @@ -46,7 +46,7 @@ fn test_ptrace_getsiginfo() { #[test] #[cfg(any(target_os = "android", target_os = "linux"))] fn test_ptrace_setsiginfo() { - let siginfo = unsafe { mem::uninitialized() }; + let siginfo = unsafe { mem::zeroed() }; if let Err(Error::UnsupportedOperation) = ptrace::setsiginfo(getpid(), &siginfo) { panic!("ptrace_setsiginfo returns Error::UnsupportedOperation!"); } |