@@ -112,6 +112,7 @@ impl<T> [T] {
112112 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
113113 #[ rustc_const_stable( feature = "const_slice_len" , since = "1.39.0" ) ]
114114 #[ rustc_allow_const_fn_unstable( ptr_metadata) ]
115+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
115116 #[ inline]
116117 #[ must_use]
117118 pub const fn len ( & self ) -> usize {
@@ -131,6 +132,7 @@ impl<T> [T] {
131132 /// ```
132133 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
133134 #[ rustc_const_stable( feature = "const_slice_is_empty" , since = "1.39.0" ) ]
135+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
134136 #[ inline]
135137 #[ must_use]
136138 pub const fn is_empty ( & self ) -> bool {
@@ -591,6 +593,7 @@ impl<T> [T] {
591593 /// assert_eq!(None, v.get(0..4));
592594 /// ```
593595 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
596+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
594597 #[ inline]
595598 #[ must_use]
596599 pub fn get < I > ( & self , index : I ) -> Option < & I :: Output >
@@ -616,6 +619,7 @@ impl<T> [T] {
616619 /// assert_eq!(x, &[0, 42, 2]);
617620 /// ```
618621 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
622+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
619623 #[ inline]
620624 #[ must_use]
621625 pub fn get_mut < I > ( & mut self , index : I ) -> Option < & mut I :: Output >
@@ -653,6 +657,7 @@ impl<T> [T] {
653657 /// }
654658 /// ```
655659 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
660+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
656661 #[ inline]
657662 #[ must_use]
658663 pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
@@ -695,6 +700,7 @@ impl<T> [T] {
695700 /// assert_eq!(x, &[1, 13, 4]);
696701 /// ```
697702 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
703+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
698704 #[ inline]
699705 #[ must_use]
700706 pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
0 commit comments