diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-10 08:13:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-10 08:13:19 +0200 |
| commit | 6743ad6726fa4144ca4616f728533fc819430d9d (patch) | |
| tree | 4511bd3892961189dbecc72fe760aaffa6b0739b /src/libstd/sys | |
| parent | 52f9e80e5f4d67d8af4831a9e27a557b30b81761 (diff) | |
| parent | 77bfd7fd1a939638a19ca30efad767c81bdd3d8b (diff) | |
| download | rust-6743ad6726fa4144ca4616f728533fc819430d9d.tar.gz rust-6743ad6726fa4144ca4616f728533fc819430d9d.zip | |
Rollup merge of #63350 - iluuu1994:use-associated-type-bounds, r=Centril
Use associated_type_bounds where applicable - closes #61738
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/sgx/abi/usercalls/alloc.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libstd/sys/sgx/abi/usercalls/alloc.rs b/src/libstd/sys/sgx/abi/usercalls/alloc.rs index c9ff53d0a4f..75dd0d429c2 100644 --- a/src/libstd/sys/sgx/abi/usercalls/alloc.rs +++ b/src/libstd/sys/sgx/abi/usercalls/alloc.rs @@ -522,7 +522,11 @@ impl<T: ?Sized> Drop for User<T> where T: UserSafe { impl<T: CoerceUnsized<U>, U> CoerceUnsized<UserRef<U>> for UserRef<T> {} #[unstable(feature = "sgx_platform", issue = "56975")] -impl<T, I: SliceIndex<[T]>> Index<I> for UserRef<[T]> where [T]: UserSafe, I::Output: UserSafe { +impl<T, I> Index<I> for UserRef<[T]> +where + [T]: UserSafe, + I: SliceIndex<[T], Output: UserSafe>, +{ type Output = UserRef<I::Output>; #[inline] @@ -538,7 +542,11 @@ impl<T, I: SliceIndex<[T]>> Index<I> for UserRef<[T]> where [T]: UserSafe, I::Ou } #[unstable(feature = "sgx_platform", issue = "56975")] -impl<T, I: SliceIndex<[T]>> IndexMut<I> for UserRef<[T]> where [T]: UserSafe, I::Output: UserSafe { +impl<T, I> IndexMut<I> for UserRef<[T]> +where + [T]: UserSafe, + I: SliceIndex<[T], Output: UserSafe>, +{ #[inline] fn index_mut(&mut self, index: I) -> &mut UserRef<I::Output> { unsafe { |
