@@ -133,6 +133,7 @@ impl<T> [T] {
133133 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
134134 #[ rustc_const_stable( feature = "const_slice_len" , since = "1.39.0" ) ]
135135 #[ rustc_allow_const_fn_unstable( ptr_metadata) ]
136+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
136137 #[ inline]
137138 #[ must_use]
138139 pub const fn len ( & self ) -> usize {
@@ -152,6 +153,7 @@ impl<T> [T] {
152153 /// ```
153154 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
154155 #[ rustc_const_stable( feature = "const_slice_is_empty" , since = "1.39.0" ) ]
156+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
155157 #[ inline]
156158 #[ must_use]
157159 pub const fn is_empty ( & self ) -> bool {
@@ -612,6 +614,7 @@ impl<T> [T] {
612614 /// assert_eq!(None, v.get(0..4));
613615 /// ```
614616 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
617+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
615618 #[ inline]
616619 #[ must_use]
617620 pub fn get < I > ( & self , index : I ) -> Option < & I :: Output >
@@ -637,6 +640,7 @@ impl<T> [T] {
637640 /// assert_eq!(x, &[0, 42, 2]);
638641 /// ```
639642 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
643+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
640644 #[ inline]
641645 #[ must_use]
642646 pub fn get_mut < I > ( & mut self , index : I ) -> Option < & mut I :: Output >
@@ -674,6 +678,7 @@ impl<T> [T] {
674678 /// }
675679 /// ```
676680 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
681+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
677682 #[ inline]
678683 #[ must_use]
679684 pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
@@ -716,6 +721,7 @@ impl<T> [T] {
716721 /// assert_eq!(x, &[1, 13, 4]);
717722 /// ```
718723 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
724+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
719725 #[ inline]
720726 #[ must_use]
721727 pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
0 commit comments