@@ -110,6 +110,7 @@ impl<T> [T] {
110
110
#[ lang = "slice_len_fn" ]
111
111
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
112
112
#[ rustc_const_stable( feature = "const_slice_len" , since = "1.39.0" ) ]
113
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
113
114
#[ inline]
114
115
#[ must_use]
115
116
pub const fn len ( & self ) -> usize {
@@ -129,6 +130,7 @@ impl<T> [T] {
129
130
/// ```
130
131
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
131
132
#[ rustc_const_stable( feature = "const_slice_is_empty" , since = "1.39.0" ) ]
133
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
132
134
#[ inline]
133
135
#[ must_use]
134
136
pub const fn is_empty ( & self ) -> bool {
@@ -589,6 +591,7 @@ impl<T> [T] {
589
591
/// assert_eq!(None, v.get(0..4));
590
592
/// ```
591
593
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
594
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
592
595
#[ inline]
593
596
#[ must_use]
594
597
pub fn get < I > ( & self , index : I ) -> Option < & I :: Output >
@@ -614,6 +617,7 @@ impl<T> [T] {
614
617
/// assert_eq!(x, &[0, 42, 2]);
615
618
/// ```
616
619
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
620
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
617
621
#[ inline]
618
622
#[ must_use]
619
623
pub fn get_mut < I > ( & mut self , index : I ) -> Option < & mut I :: Output >
@@ -651,6 +655,7 @@ impl<T> [T] {
651
655
/// }
652
656
/// ```
653
657
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
658
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
654
659
#[ inline]
655
660
#[ must_use]
656
661
pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
@@ -693,6 +698,7 @@ impl<T> [T] {
693
698
/// assert_eq!(x, &[1, 13, 4]);
694
699
/// ```
695
700
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
701
+ #[ cfg_attr( not( bootstrap) , rustc_no_implicit_autorefs) ]
696
702
#[ inline]
697
703
#[ must_use]
698
704
pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
0 commit comments