1
Fork 0

Add message to rustc_on_unimplemented attributes in core

This commit is contained in:
Esteban Küber 2018-06-09 16:53:36 -07:00
parent b3a1d56ebe
commit 776544f011
112 changed files with 394 additions and 318 deletions

View file

@ -1693,7 +1693,10 @@ impl<T: Hash> Hash for Vec<T> {
}
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_on_unimplemented = "vector indices are of type `usize` or ranges of `usize`"]
#[rustc_on_unimplemented(
message="vector indices are of type `usize` or ranges of `usize`",
label="vector indices are of type `usize` or ranges of `usize`",
)]
impl<T, I> Index<I> for Vec<T>
where
I: ::core::slice::SliceIndex<[T]>,
@ -1707,7 +1710,10 @@ where
}
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_on_unimplemented = "vector indices are of type `usize` or ranges of `usize`"]
#[rustc_on_unimplemented(
message="vector indices are of type `usize` or ranges of `usize`",
label="vector indices are of type `usize` or ranges of `usize`",
)]
impl<T, I> IndexMut<I> for Vec<T>
where
I: ::core::slice::SliceIndex<[T]>,