diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-05 20:27:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-05 20:27:08 +0200 |
| commit | e89bd8c3089eb8e3b85e989352f7cfb73733c76b (patch) | |
| tree | c269c3e16e3a69f5d1df500cd18e03c270ce7e77 /src/libstd/sys | |
| parent | cc453d9895510213c42935fb6db43baeb4c8abf9 (diff) | |
| parent | 7fb17d868bd629019bf11c56596bb64eea6bd6f6 (diff) | |
| download | rust-e89bd8c3089eb8e3b85e989352f7cfb73733c76b.tar.gz rust-e89bd8c3089eb8e3b85e989352f7cfb73733c76b.zip | |
Rollup merge of #62414 - jethrogb:jb/sgx-uninit, r=Mark-Simulacrum
Remove last use of mem::uninitialized in SGX See #62397
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/sgx/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/sys/sgx/mod.rs b/src/libstd/sys/sgx/mod.rs index 3bf9ecf4080..601957acd5c 100644 --- a/src/libstd/sys/sgx/mod.rs +++ b/src/libstd/sys/sgx/mod.rs @@ -3,8 +3,6 @@ //! This module contains the facade (aka platform-specific) implementations of //! OS level functionality for Fortanix SGX. -#![allow(deprecated)] - use crate::io::ErrorKind; use crate::os::raw::c_char; use crate::sync::atomic::{AtomicBool, Ordering}; @@ -142,7 +140,7 @@ pub unsafe extern "C" fn __rust_abort() { pub fn hashmap_random_keys() -> (u64, u64) { fn rdrand64() -> u64 { unsafe { - let mut ret: u64 = crate::mem::uninitialized(); + let mut ret: u64 = 0; for _ in 0..10 { if crate::arch::x86_64::_rdrand64_step(&mut ret) == 1 { return ret; |
