From aec51fbf40373955f0ee87c4fecee34e83de33f6 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Fri, 1 Apr 2022 10:38:39 +0200 Subject: Remove need for associated_type_bounds in std. --- library/std/src/sys/sgx/abi/usercalls/alloc.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'library/std/src/sys') diff --git a/library/std/src/sys/sgx/abi/usercalls/alloc.rs b/library/std/src/sys/sgx/abi/usercalls/alloc.rs index 9fdb1b45844..3792a3820a5 100644 --- a/library/std/src/sys/sgx/abi/usercalls/alloc.rs +++ b/library/std/src/sys/sgx/abi/usercalls/alloc.rs @@ -571,7 +571,8 @@ impl, U> CoerceUnsized> for UserRef {} impl Index for UserRef<[T]> where [T]: UserSafe, - I: SliceIndex<[T], Output: UserSafe>, + I: SliceIndex<[T]>, + I::Output: UserSafe, { type Output = UserRef; @@ -591,7 +592,8 @@ where impl IndexMut for UserRef<[T]> where [T]: UserSafe, - I: SliceIndex<[T], Output: UserSafe>, + I: SliceIndex<[T]>, + I::Output: UserSafe, { #[inline] fn index_mut(&mut self, index: I) -> &mut UserRef { -- cgit 1.4.1-3-g733a5