@@ -111,6 +111,7 @@ impl<T> [T] {
111111 #[ lang = "slice_len_fn" ]
112112 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
113113 #[ rustc_const_stable( feature = "const_slice_len" , since = "1.39.0" ) ]
114+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
114115 #[ inline]
115116 #[ must_use]
116117 pub const fn len ( & self ) -> usize {
@@ -130,6 +131,7 @@ impl<T> [T] {
130131 /// ```
131132 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
132133 #[ rustc_const_stable( feature = "const_slice_is_empty" , since = "1.39.0" ) ]
134+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
133135 #[ inline]
134136 #[ must_use]
135137 pub const fn is_empty ( & self ) -> bool {
@@ -598,6 +600,7 @@ impl<T> [T] {
598600 /// assert_eq!(None, v.get(0..4));
599601 /// ```
600602 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
603+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
601604 #[ inline]
602605 #[ must_use]
603606 pub fn get < I > ( & self , index : I ) -> Option < & I :: Output >
@@ -623,6 +626,7 @@ impl<T> [T] {
623626 /// assert_eq!(x, &[0, 42, 2]);
624627 /// ```
625628 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
629+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
626630 #[ inline]
627631 #[ must_use]
628632 pub fn get_mut < I > ( & mut self , index : I ) -> Option < & mut I :: Output >
@@ -660,6 +664,7 @@ impl<T> [T] {
660664 /// }
661665 /// ```
662666 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
667+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
663668 #[ inline]
664669 #[ must_use]
665670 pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
@@ -702,6 +707,7 @@ impl<T> [T] {
702707 /// assert_eq!(x, &[1, 13, 4]);
703708 /// ```
704709 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
710+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
705711 #[ inline]
706712 #[ must_use]
707713 pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
0 commit comments