Skip to content

Commit aec51fb

Browse files
committed
Remove need for associated_type_bounds in std.
1 parent 7922024 commit aec51fb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

library/std/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@
224224
#![feature(allocator_internals)]
225225
#![feature(allow_internal_unsafe)]
226226
#![feature(allow_internal_unstable)]
227-
#![feature(associated_type_bounds)]
228227
#![feature(box_syntax)]
229228
#![feature(c_unwind)]
230229
#![feature(cfg_target_thread_local)]

library/std/src/sys/sgx/abi/usercalls/alloc.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ impl<T: CoerceUnsized<U>, U> CoerceUnsized<UserRef<U>> for UserRef<T> {}
571571
impl<T, I> Index<I> for UserRef<[T]>
572572
where
573573
[T]: UserSafe,
574-
I: SliceIndex<[T], Output: UserSafe>,
574+
I: SliceIndex<[T]>,
575+
I::Output: UserSafe,
575576
{
576577
type Output = UserRef<I::Output>;
577578

@@ -591,7 +592,8 @@ where
591592
impl<T, I> IndexMut<I> for UserRef<[T]>
592593
where
593594
[T]: UserSafe,
594-
I: SliceIndex<[T], Output: UserSafe>,
595+
I: SliceIndex<[T]>,
596+
I::Output: UserSafe,
595597
{
596598
#[inline]
597599
fn index_mut(&mut self, index: I) -> &mut UserRef<I::Output> {

0 commit comments

Comments
 (0)