Skip to content

Commit a6b130e

Browse files
committed
remove ?Sized bounds from Index
1 parent 003382e commit a6b130e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ops/index.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#[doc(alias = "]")]
5959
#[doc(alias = "[")]
6060
#[doc(alias = "[]")]
61-
pub trait Index<Idx: ?Sized> {
61+
pub trait Index<Idx> {
6262
/// The returned type after indexing.
6363
#[stable(feature = "rust1", since = "1.0.0")]
6464
type Output: ?Sized;
@@ -163,7 +163,7 @@ see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#ind
163163
#[doc(alias = "[")]
164164
#[doc(alias = "]")]
165165
#[doc(alias = "[]")]
166-
pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
166+
pub trait IndexMut<Idx>: Index<Idx> {
167167
/// Performs the mutable indexing (`container[index]`) operation.
168168
#[stable(feature = "rust1", since = "1.0.0")]
169169
fn index_mut(&mut self, index: Idx) -> &mut Self::Output;

0 commit comments

Comments
 (0)