@@ -133,6 +133,7 @@ impl<T> [T] {
133
133
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
134
134
#[ rustc_const_stable( feature = "const_slice_len" , since = "1.39.0" ) ]
135
135
#[ rustc_allow_const_fn_unstable( ptr_metadata) ]
136
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
136
137
#[ inline]
137
138
#[ must_use]
138
139
pub const fn len ( & self ) -> usize {
@@ -152,6 +153,7 @@ impl<T> [T] {
152
153
/// ```
153
154
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
154
155
#[ rustc_const_stable( feature = "const_slice_is_empty" , since = "1.39.0" ) ]
156
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
155
157
#[ inline]
156
158
#[ must_use]
157
159
pub const fn is_empty ( & self ) -> bool {
@@ -612,6 +614,7 @@ impl<T> [T] {
612
614
/// assert_eq!(None, v.get(0..4));
613
615
/// ```
614
616
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
617
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
615
618
#[ inline]
616
619
#[ must_use]
617
620
pub fn get < I > ( & self , index : I ) -> Option < & I :: Output >
@@ -637,6 +640,7 @@ impl<T> [T] {
637
640
/// assert_eq!(x, &[0, 42, 2]);
638
641
/// ```
639
642
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
643
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
640
644
#[ inline]
641
645
#[ must_use]
642
646
pub fn get_mut < I > ( & mut self , index : I ) -> Option < & mut I :: Output >
@@ -674,6 +678,7 @@ impl<T> [T] {
674
678
/// }
675
679
/// ```
676
680
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
681
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
677
682
#[ inline]
678
683
#[ must_use]
679
684
pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
@@ -716,6 +721,7 @@ impl<T> [T] {
716
721
/// assert_eq!(x, &[1, 13, 4]);
717
722
/// ```
718
723
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
724
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
719
725
#[ inline]
720
726
#[ must_use]
721
727
pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
0 commit comments