From d7a22f234065efd69921d8f1f179087c39494b4c Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Mon, 14 Sep 2020 09:58:58 +0200 Subject: [PATCH] Fix SGX test suite Broken in #76120 --- library/std/src/sys/sgx/rwlock/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sys/sgx/rwlock/tests.rs b/library/std/src/sys/sgx/rwlock/tests.rs index 05b36c633f861..7b13866257191 100644 --- a/library/std/src/sys/sgx/rwlock/tests.rs +++ b/library/std/src/sys/sgx/rwlock/tests.rs @@ -38,6 +38,6 @@ fn test_c_rwlock_initializer() { zero_stack(); let mut init = MaybeUninit::::zeroed(); rwlock_new(&mut init); - assert_eq!(mem::transmute::<_, [u8; 144]>(init.assume_init()).as_slice(), RWLOCK_INIT) + assert_eq!(&mem::transmute::<_, [u8; 144]>(init.assume_init())[..], RWLOCK_INIT) }; }