From 93fb4d83178dde230eb55ce02468867ea6ac44f0 Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Thu, 28 Mar 2019 17:50:01 -0700 Subject: [PATCH] Fix missed fn rename in #59284 --- src/libstd/sys/sgx/rwlock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/sys/sgx/rwlock.rs b/src/libstd/sys/sgx/rwlock.rs index 7e2d13b9e2476..784303f3a65e8 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) { - init.set(RWLock::new()); + init.write(RWLock::new()); } unsafe {