@@ -523,7 +523,7 @@ impl<T> SliceExt for [T] {
523
523
}
524
524
525
525
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
526
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
526
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
527
527
impl < T > ops:: Index < usize > for [ T ] {
528
528
type Output = T ;
529
529
@@ -534,7 +534,7 @@ impl<T> ops::Index<usize> for [T] {
534
534
}
535
535
536
536
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
537
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
537
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
538
538
impl < T > ops:: IndexMut < usize > for [ T ] {
539
539
#[ inline]
540
540
fn index_mut ( & mut self , index : usize ) -> & mut T {
@@ -568,7 +568,7 @@ fn slice_index_order_fail(index: usize, end: usize) -> ! {
568
568
/// Requires that `begin <= end` and `end <= self.len()`,
569
569
/// otherwise slicing will panic.
570
570
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
571
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
571
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
572
572
impl < T > ops:: Index < ops:: Range < usize > > for [ T ] {
573
573
type Output = [ T ] ;
574
574
@@ -595,7 +595,7 @@ impl<T> ops::Index<ops::Range<usize>> for [T] {
595
595
///
596
596
/// Equivalent to `&self[0 .. end]`
597
597
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
598
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
598
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
599
599
impl < T > ops:: Index < ops:: RangeTo < usize > > for [ T ] {
600
600
type Output = [ T ] ;
601
601
@@ -611,7 +611,7 @@ impl<T> ops::Index<ops::RangeTo<usize>> for [T] {
611
611
///
612
612
/// Equivalent to `&self[begin .. self.len()]`
613
613
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
614
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
614
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
615
615
impl < T > ops:: Index < ops:: RangeFrom < usize > > for [ T ] {
616
616
type Output = [ T ] ;
617
617
@@ -637,7 +637,7 @@ impl<T> ops::Index<RangeFull> for [T] {
637
637
}
638
638
639
639
#[ unstable( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237" ) ]
640
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
640
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
641
641
impl < T > ops:: Index < ops:: RangeInclusive < usize > > for [ T ] {
642
642
type Output = [ T ] ;
643
643
@@ -653,7 +653,7 @@ impl<T> ops::Index<ops::RangeInclusive<usize>> for [T] {
653
653
}
654
654
}
655
655
#[ unstable( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237" ) ]
656
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
656
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
657
657
impl < T > ops:: Index < ops:: RangeToInclusive < usize > > for [ T ] {
658
658
type Output = [ T ] ;
659
659
@@ -674,7 +674,7 @@ impl<T> ops::Index<ops::RangeToInclusive<usize>> for [T] {
674
674
/// Requires that `begin <= end` and `end <= self.len()`,
675
675
/// otherwise slicing will panic.
676
676
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
677
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
677
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
678
678
impl < T > ops:: IndexMut < ops:: Range < usize > > for [ T ] {
679
679
#[ inline]
680
680
fn index_mut ( & mut self , index : ops:: Range < usize > ) -> & mut [ T ] {
@@ -699,7 +699,7 @@ impl<T> ops::IndexMut<ops::Range<usize>> for [T] {
699
699
///
700
700
/// Equivalent to `&mut self[0 .. end]`
701
701
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
702
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
702
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
703
703
impl < T > ops:: IndexMut < ops:: RangeTo < usize > > for [ T ] {
704
704
#[ inline]
705
705
fn index_mut ( & mut self , index : ops:: RangeTo < usize > ) -> & mut [ T ] {
@@ -713,7 +713,7 @@ impl<T> ops::IndexMut<ops::RangeTo<usize>> for [T] {
713
713
///
714
714
/// Equivalent to `&mut self[begin .. self.len()]`
715
715
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
716
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
716
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
717
717
impl < T > ops:: IndexMut < ops:: RangeFrom < usize > > for [ T ] {
718
718
#[ inline]
719
719
fn index_mut ( & mut self , index : ops:: RangeFrom < usize > ) -> & mut [ T ] {
@@ -736,7 +736,7 @@ impl<T> ops::IndexMut<RangeFull> for [T] {
736
736
}
737
737
738
738
#[ unstable( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237" ) ]
739
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
739
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
740
740
impl < T > ops:: IndexMut < ops:: RangeInclusive < usize > > for [ T ] {
741
741
#[ inline]
742
742
fn index_mut ( & mut self , index : ops:: RangeInclusive < usize > ) -> & mut [ T ] {
@@ -750,7 +750,7 @@ impl<T> ops::IndexMut<ops::RangeInclusive<usize>> for [T] {
750
750
}
751
751
}
752
752
#[ unstable( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237" ) ]
753
- #[ rustc_on_unimplemented = "slice indices are of type usize" ]
753
+ #[ rustc_on_unimplemented = "slice indices are of type ` usize` " ]
754
754
impl < T > ops:: IndexMut < ops:: RangeToInclusive < usize > > for [ T ] {
755
755
#[ inline]
756
756
fn index_mut ( & mut self , index : ops:: RangeToInclusive < usize > ) -> & mut [ T ] {
0 commit comments