File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1008,7 +1008,7 @@ impl<T: ?Sized> *const T {
1008
1008
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
1009
1009
#[ must_use = "returns a new pointer rather than modifying its argument" ]
1010
1010
#[ rustc_const_stable( feature = "const_ptr_offset" , since = "1.61.0" ) ]
1011
- #[ inline]
1011
+ #[ inline( always ) ]
1012
1012
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
1013
1013
pub const unsafe fn sub ( self , count : usize ) -> Self
1014
1014
where
@@ -1173,7 +1173,7 @@ impl<T: ?Sized> *const T {
1173
1173
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
1174
1174
#[ must_use = "returns a new pointer rather than modifying its argument" ]
1175
1175
#[ rustc_const_stable( feature = "const_ptr_offset" , since = "1.61.0" ) ]
1176
- #[ inline]
1176
+ #[ inline( always ) ]
1177
1177
pub const fn wrapping_sub ( self , count : usize ) -> Self
1178
1178
where
1179
1179
T : Sized ,
Original file line number Diff line number Diff line change @@ -1110,7 +1110,7 @@ impl<T: ?Sized> *mut T {
1110
1110
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
1111
1111
#[ must_use = "returns a new pointer rather than modifying its argument" ]
1112
1112
#[ rustc_const_stable( feature = "const_ptr_offset" , since = "1.61.0" ) ]
1113
- #[ inline]
1113
+ #[ inline( always ) ]
1114
1114
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
1115
1115
pub const unsafe fn sub ( self , count : usize ) -> Self
1116
1116
where
@@ -1275,7 +1275,7 @@ impl<T: ?Sized> *mut T {
1275
1275
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
1276
1276
#[ must_use = "returns a new pointer rather than modifying its argument" ]
1277
1277
#[ rustc_const_stable( feature = "const_ptr_offset" , since = "1.61.0" ) ]
1278
- #[ inline]
1278
+ #[ inline( always ) ]
1279
1279
pub const fn wrapping_sub ( self , count : usize ) -> Self
1280
1280
where
1281
1281
T : Sized ,
You can’t perform that action at this time.
0 commit comments