File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ impl<T: ?Sized> *const T {
87
87
#[ unstable( feature = "pointer_try_cast_aligned" , issue = "141221" ) ]
88
88
#[ must_use = "this returns the result of the operation, \
89
89
without modifying the original"]
90
- #[ inline( always ) ]
90
+ #[ inline]
91
91
pub fn try_cast_aligned < U > ( self ) -> Option < * const U > {
92
92
if self . is_aligned_to ( align_of :: < U > ( ) ) { Some ( self . cast ( ) ) } else { None }
93
93
}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ impl<T: ?Sized> *mut T {
69
69
#[ unstable( feature = "pointer_try_cast_aligned" , issue = "141221" ) ]
70
70
#[ must_use = "this returns the result of the operation, \
71
71
without modifying the original"]
72
- #[ inline( always ) ]
72
+ #[ inline]
73
73
pub fn try_cast_aligned < U > ( self ) -> Option < * mut U > {
74
74
if self . is_aligned_to ( align_of :: < U > ( ) ) { Some ( self . cast ( ) ) } else { None }
75
75
}
Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ impl<T: ?Sized> NonNull<T> {
511
511
#[ unstable( feature = "pointer_try_cast_aligned" , issue = "141221" ) ]
512
512
#[ must_use = "this returns the result of the operation, \
513
513
without modifying the original"]
514
- #[ inline( always ) ]
514
+ #[ inline]
515
515
pub fn try_cast_aligned < U > ( self ) -> Option < NonNull < U > > {
516
516
if self . is_aligned_to ( align_of :: < U > ( ) ) { Some ( self . cast ( ) ) } else { None }
517
517
}
You can’t perform that action at this time.
0 commit comments