From 469032433d68841ad098f03aa2b28e81235b8be8 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Fri, 30 Aug 2019 23:10:22 -0600 Subject: 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 --- test/sys/test_ptrace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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!"); } -- cgit v1.2.3