Skip to content

Commit b1bc725

Browse files
committed
Delete unreacheable #[rustc_on_unimplemented]
1 parent e61403a commit b1bc725

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: library/alloc/src/vec/mod.rs

-8
Original file line numberDiff line numberDiff line change
@@ -3360,10 +3360,6 @@ impl<T: Hash, A: Allocator> Hash for Vec<T, A> {
33603360
}
33613361

33623362
#[stable(feature = "rust1", since = "1.0.0")]
3363-
#[rustc_on_unimplemented(
3364-
message = "vector indices are of type `usize` or ranges of `usize`",
3365-
label = "vector indices are of type `usize` or ranges of `usize`"
3366-
)]
33673363
impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> {
33683364
type Output = I::Output;
33693365

@@ -3374,10 +3370,6 @@ impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> {
33743370
}
33753371

33763372
#[stable(feature = "rust1", since = "1.0.0")]
3377-
#[rustc_on_unimplemented(
3378-
message = "vector indices are of type `usize` or ranges of `usize`",
3379-
label = "vector indices are of type `usize` or ranges of `usize`"
3380-
)]
33813373
impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> {
33823374
#[inline]
33833375
fn index_mut(&mut self, index: I) -> &mut Self::Output {

0 commit comments

Comments
 (0)