@@ -111,6 +111,7 @@ impl<T> [T] {
111
111
#[ lang = "slice_len_fn" ]
112
112
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
113
113
#[ rustc_const_stable( feature = "const_slice_len" , since = "1.39.0" ) ]
114
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
114
115
#[ inline]
115
116
#[ must_use]
116
117
pub const fn len ( & self ) -> usize {
@@ -130,6 +131,7 @@ impl<T> [T] {
130
131
/// ```
131
132
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
132
133
#[ rustc_const_stable( feature = "const_slice_is_empty" , since = "1.39.0" ) ]
134
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
133
135
#[ inline]
134
136
#[ must_use]
135
137
pub const fn is_empty ( & self ) -> bool {
@@ -598,6 +600,7 @@ impl<T> [T] {
598
600
/// assert_eq!(None, v.get(0..4));
599
601
/// ```
600
602
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
603
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
601
604
#[ inline]
602
605
#[ must_use]
603
606
pub fn get < I > ( & self , index : I ) -> Option < & I :: Output >
@@ -623,6 +626,7 @@ impl<T> [T] {
623
626
/// assert_eq!(x, &[0, 42, 2]);
624
627
/// ```
625
628
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
629
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
626
630
#[ inline]
627
631
#[ must_use]
628
632
pub fn get_mut < I > ( & mut self , index : I ) -> Option < & mut I :: Output >
@@ -660,6 +664,7 @@ impl<T> [T] {
660
664
/// }
661
665
/// ```
662
666
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
667
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
663
668
#[ inline]
664
669
#[ must_use]
665
670
pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
@@ -702,6 +707,7 @@ impl<T> [T] {
702
707
/// assert_eq!(x, &[1, 13, 4]);
703
708
/// ```
704
709
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
710
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
705
711
#[ inline]
706
712
#[ must_use]
707
713
pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
0 commit comments