@@ -109,6 +109,7 @@ impl<T> [T] {
109
109
#[ lang = "slice_len_fn" ]
110
110
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
111
111
#[ rustc_const_stable( feature = "const_slice_len" , since = "1.39.0" ) ]
112
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
112
113
#[ inline]
113
114
#[ must_use]
114
115
pub const fn len ( & self ) -> usize {
@@ -128,6 +129,7 @@ impl<T> [T] {
128
129
/// ```
129
130
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
130
131
#[ rustc_const_stable( feature = "const_slice_is_empty" , since = "1.39.0" ) ]
132
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
131
133
#[ inline]
132
134
#[ must_use]
133
135
pub const fn is_empty ( & self ) -> bool {
@@ -562,6 +564,7 @@ impl<T> [T] {
562
564
/// assert_eq!(None, v.get(0..4));
563
565
/// ```
564
566
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
567
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
565
568
#[ inline]
566
569
#[ must_use]
567
570
pub fn get < I > ( & self , index : I ) -> Option < & I :: Output >
@@ -587,6 +590,7 @@ impl<T> [T] {
587
590
/// assert_eq!(x, &[0, 42, 2]);
588
591
/// ```
589
592
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
593
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
590
594
#[ inline]
591
595
#[ must_use]
592
596
pub fn get_mut < I > ( & mut self , index : I ) -> Option < & mut I :: Output >
@@ -624,6 +628,7 @@ impl<T> [T] {
624
628
/// }
625
629
/// ```
626
630
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
631
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
627
632
#[ inline]
628
633
#[ must_use]
629
634
pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
@@ -666,6 +671,7 @@ impl<T> [T] {
666
671
/// assert_eq!(x, &[1, 13, 4]);
667
672
/// ```
668
673
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
674
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
669
675
#[ inline]
670
676
#[ must_use]
671
677
pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
0 commit comments