about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-29 02:41:00 +0100
committerGitHub <noreply@github.com>2019-03-29 02:41:00 +0100
commit456fa39031f908490a112356373afa3535878a38 (patch)
treedf94402ab600c807350ec063d6358666f42b7545 /src/libstd
parent18680ae94f000d4b6d9e05939ed2679543da4267 (diff)
parent93fb4d83178dde230eb55ce02468867ea6ac44f0 (diff)
downloadrust-456fa39031f908490a112356373afa3535878a38.tar.gz
rust-456fa39031f908490a112356373afa3535878a38.zip
Rollup merge of #59511 - jethrogb:jb/maybeinit-deprecated, r=Centril
Fix missed fn rename in #59284

See https://github.com/rust-lang/rust/pull/59284#issuecomment-477822797
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/sgx/rwlock.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/sgx/rwlock.rs b/src/libstd/sys/sgx/rwlock.rs
index 7e2d13b9e24..784303f3a65 100644
--- a/src/libstd/sys/sgx/rwlock.rs
+++ b/src/libstd/sys/sgx/rwlock.rs
@@ -268,7 +268,7 @@ mod tests {
 
         #[inline(never)]
         unsafe fn rwlock_new(init: &mut MaybeUninit<RWLock>) {
-            init.set(RWLock::new());
+            init.write(RWLock::new());
         }
 
         unsafe {