]> git.lizzy.rs Git - rust.git/commitdiff
Remove need for associated_type_bounds in std.
authorMara Bos <m-ou.se@m-ou.se>
Fri, 1 Apr 2022 08:38:39 +0000 (10:38 +0200)
committerMara Bos <m-ou.se@m-ou.se>
Fri, 1 Apr 2022 08:38:39 +0000 (10:38 +0200)
library/std/src/lib.rs
library/std/src/sys/sgx/abi/usercalls/alloc.rs

index 819ec10a4b4b65c0caa682989a5054543d7b1f0d..e1c1800438354ba2e905b22d0af6ad41156ede7d 100644 (file)
 #![feature(allocator_internals)]
 #![feature(allow_internal_unsafe)]
 #![feature(allow_internal_unstable)]
-#![feature(associated_type_bounds)]
 #![feature(box_syntax)]
 #![feature(c_unwind)]
 #![feature(cfg_target_thread_local)]
index 9fdb1b4584479090c4e31de2d44989e090d9f1de..3792a3820a534b07648eebc8ab2893fa574303e8 100644 (file)
@@ -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 @@ fn index(&self, index: I) -> &UserRef<I::Output> {
 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> {