about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-06-09 16:53:36 -0700
committerEsteban Küber <esteban@kuber.com.ar>2018-06-19 15:19:13 -0700
commit776544f011a6a5beccb7923a261b0dcecdd2396a (patch)
tree1324f0d410e2ec3bd75ea5378a79fbc5a39c8a3e /src/liballoc
parentb3a1d56ebe34276916f34ffb0fed34d406f73c55 (diff)
downloadrust-776544f011a6a5beccb7923a261b0dcecdd2396a.tar.gz
rust-776544f011a6a5beccb7923a261b0dcecdd2396a.zip
Add message to `rustc_on_unimplemented` attributes in core
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/vec.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index b5739e1a825..752a6c966d5 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -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]>,