@@ -299,7 +299,7 @@ impl<T> [T] {
299299 /// assert_eq!(None, v.get(0..4));
300300 /// ```
301301 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
302- #[ inline]
302+ #[ inline( always ) ]
303303 pub fn get < I > ( & self , index : I ) -> Option < & I :: Output >
304304 where
305305 I : SliceIndex < Self > ,
@@ -323,7 +323,7 @@ impl<T> [T] {
323323 /// assert_eq!(x, &[0, 42, 2]);
324324 /// ```
325325 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
326- #[ inline]
326+ #[ inline( always ) ]
327327 pub fn get_mut < I > ( & mut self , index : I ) -> Option < & mut I :: Output >
328328 where
329329 I : SliceIndex < Self > ,
@@ -354,7 +354,7 @@ impl<T> [T] {
354354 /// }
355355 /// ```
356356 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
357- #[ inline]
357+ #[ inline( always ) ]
358358 pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
359359 where
360360 I : SliceIndex < Self > ,
@@ -390,7 +390,7 @@ impl<T> [T] {
390390 /// assert_eq!(x, &[1, 13, 4]);
391391 /// ```
392392 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
393- #[ inline]
393+ #[ inline( always ) ]
394394 pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
395395 where
396396 I : SliceIndex < Self > ,
@@ -429,7 +429,7 @@ impl<T> [T] {
429429 /// [`as_mut_ptr`]: slice::as_mut_ptr
430430 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
431431 #[ rustc_const_stable( feature = "const_slice_as_ptr" , since = "1.32.0" ) ]
432- #[ inline]
432+ #[ inline( always ) ]
433433 pub const fn as_ptr ( & self ) -> * const T {
434434 self as * const [ T ] as * const T
435435 }
@@ -457,7 +457,7 @@ impl<T> [T] {
457457 /// ```
458458 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
459459 #[ rustc_const_unstable( feature = "const_ptr_offset" , issue = "71499" ) ]
460- #[ inline]
460+ #[ inline( always ) ]
461461 pub const fn as_mut_ptr ( & mut self ) -> * mut T {
462462 self as * mut [ T ] as * mut T
463463 }
@@ -702,7 +702,7 @@ impl<T> [T] {
702702 /// assert_eq!(iterator.next(), None);
703703 /// ```
704704 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
705- #[ inline]
705+ #[ inline( always ) ]
706706 pub fn iter ( & self ) -> Iter < ' _ , T > {
707707 Iter :: new ( self )
708708 }
@@ -719,7 +719,7 @@ impl<T> [T] {
719719 /// assert_eq!(x, &[3, 4, 6]);
720720 /// ```
721721 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
722- #[ inline]
722+ #[ inline( always ) ]
723723 pub fn iter_mut ( & mut self ) -> IterMut < ' _ , T > {
724724 IterMut :: new ( self )
725725 }
@@ -3544,7 +3544,7 @@ pub trait SlicePattern {
35443544impl < T > SlicePattern for [ T ] {
35453545 type Item = T ;
35463546
3547- #[ inline]
3547+ #[ inline( always ) ]
35483548 fn as_slice ( & self ) -> & [ Self :: Item ] {
35493549 self
35503550 }
@@ -3554,7 +3554,7 @@ impl<T> SlicePattern for [T] {
35543554impl < T , const N : usize > SlicePattern for [ T ; N ] {
35553555 type Item = T ;
35563556
3557- #[ inline]
3557+ #[ inline( always ) ]
35583558 fn as_slice ( & self ) -> & [ Self :: Item ] {
35593559 self
35603560 }
0 commit comments