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