diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-04-01 10:38:39 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-04-01 10:38:39 +0200 |
| commit | aec51fbf40373955f0ee87c4fecee34e83de33f6 (patch) | |
| tree | 87e1f7762c280d06a3754ee73b1eab161b4e09a4 /library/std/src/sys | |
| parent | 79220247cd28bf84110976bf07e99f7b4aa9ec2b (diff) | |
| download | rust-aec51fbf40373955f0ee87c4fecee34e83de33f6.tar.gz rust-aec51fbf40373955f0ee87c4fecee34e83de33f6.zip | |
Remove need for associated_type_bounds in std.
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/sgx/abi/usercalls/alloc.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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<T: CoerceUnsized<U>, U> CoerceUnsized<UserRef<U>> for UserRef<T> {} impl<T, I> Index<I> for UserRef<[T]> where [T]: UserSafe, - I: SliceIndex<[T], Output: UserSafe>, + I: SliceIndex<[T]>, + I::Output: UserSafe, { type Output = UserRef<I::Output>; @@ -591,7 +592,8 @@ where impl<T, I> IndexMut<I> 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<I::Output> { |
