@@ -110,6 +110,7 @@ impl<T> [T] {
110110 #[ lang = "slice_len_fn" ]
111111 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
112112 #[ rustc_const_stable( feature = "const_slice_len" , since = "1.39.0" ) ]
113+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
113114 #[ inline]
114115 #[ must_use]
115116 pub const fn len ( & self ) -> usize {
@@ -129,6 +130,7 @@ impl<T> [T] {
129130 /// ```
130131 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
131132 #[ rustc_const_stable( feature = "const_slice_is_empty" , since = "1.39.0" ) ]
133+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
132134 #[ inline]
133135 #[ must_use]
134136 pub const fn is_empty ( & self ) -> bool {
@@ -589,6 +591,7 @@ impl<T> [T] {
589591 /// assert_eq!(None, v.get(0..4));
590592 /// ```
591593 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
594+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
592595 #[ inline]
593596 #[ must_use]
594597 pub fn get < I > ( & self , index : I ) -> Option < & I :: Output >
@@ -614,6 +617,7 @@ impl<T> [T] {
614617 /// assert_eq!(x, &[0, 42, 2]);
615618 /// ```
616619 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
620+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
617621 #[ inline]
618622 #[ must_use]
619623 pub fn get_mut < I > ( & mut self , index : I ) -> Option < & mut I :: Output >
@@ -651,6 +655,7 @@ impl<T> [T] {
651655 /// }
652656 /// ```
653657 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
658+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
654659 #[ inline]
655660 #[ must_use]
656661 pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
@@ -693,6 +698,7 @@ impl<T> [T] {
693698 /// assert_eq!(x, &[1, 13, 4]);
694699 /// ```
695700 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
701+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
696702 #[ inline]
697703 #[ must_use]
698704 pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
0 commit comments