@@ -816,12 +816,12 @@ const fn panic_already_mutably_borrowed(err: BorrowError) -> ! {
816
816
type BorrowCounter = isize ;
817
817
const UNUSED : BorrowCounter = 0 ;
818
818
819
- #[ inline ( always ) ]
819
+ #[ rustc_early_inline ]
820
820
const fn is_writing ( x : BorrowCounter ) -> bool {
821
821
x < UNUSED
822
822
}
823
823
824
- #[ inline ( always ) ]
824
+ #[ rustc_early_inline ]
825
825
const fn is_reading ( x : BorrowCounter ) -> bool {
826
826
x > UNUSED
827
827
}
@@ -2112,7 +2112,7 @@ impl<T> UnsafeCell<T> {
2112
2112
/// ```
2113
2113
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2114
2114
#[ rustc_const_stable( feature = "const_unsafe_cell_new" , since = "1.32.0" ) ]
2115
- #[ inline ( always ) ]
2115
+ #[ rustc_early_inline ]
2116
2116
pub const fn new ( value : T ) -> UnsafeCell < T > {
2117
2117
UnsafeCell { value }
2118
2118
}
@@ -2128,7 +2128,7 @@ impl<T> UnsafeCell<T> {
2128
2128
///
2129
2129
/// let five = uc.into_inner();
2130
2130
/// ```
2131
- #[ inline ( always ) ]
2131
+ #[ rustc_early_inline ]
2132
2132
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2133
2133
#[ rustc_const_stable( feature = "const_cell_into_inner" , since = "1.83.0" ) ]
2134
2134
#[ rustc_allow_const_fn_unstable( const_precise_live_drops) ]
@@ -2180,7 +2180,7 @@ impl<T: ?Sized> UnsafeCell<T> {
2180
2180
/// *uc.get_mut() -= 1;
2181
2181
/// assert_eq!(*uc.get_mut(), 41);
2182
2182
/// ```
2183
- #[ inline ( always ) ]
2183
+ #[ rustc_early_inline ]
2184
2184
#[ stable( feature = "unsafe_cell_from_mut" , since = "1.84.0" ) ]
2185
2185
#[ rustc_const_stable( feature = "unsafe_cell_from_mut" , since = "1.84.0" ) ]
2186
2186
pub const fn from_mut ( value : & mut T ) -> & mut UnsafeCell < T > {
@@ -2203,7 +2203,7 @@ impl<T: ?Sized> UnsafeCell<T> {
2203
2203
///
2204
2204
/// let five = uc.get();
2205
2205
/// ```
2206
- #[ inline ( always ) ]
2206
+ #[ rustc_early_inline ]
2207
2207
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2208
2208
#[ rustc_const_stable( feature = "const_unsafecell_get" , since = "1.32.0" ) ]
2209
2209
#[ rustc_as_ptr]
@@ -2230,7 +2230,7 @@ impl<T: ?Sized> UnsafeCell<T> {
2230
2230
///
2231
2231
/// assert_eq!(*c.get_mut(), 6);
2232
2232
/// ```
2233
- #[ inline ( always ) ]
2233
+ #[ rustc_early_inline ]
2234
2234
#[ stable( feature = "unsafe_cell_get_mut" , since = "1.50.0" ) ]
2235
2235
#[ rustc_const_stable( feature = "const_unsafecell_get_mut" , since = "1.83.0" ) ]
2236
2236
pub const fn get_mut ( & mut self ) -> & mut T {
@@ -2264,7 +2264,7 @@ impl<T: ?Sized> UnsafeCell<T> {
2264
2264
///
2265
2265
/// assert_eq!(uc.into_inner(), 5);
2266
2266
/// ```
2267
- #[ inline ( always ) ]
2267
+ #[ rustc_early_inline ]
2268
2268
#[ stable( feature = "unsafe_cell_raw_get" , since = "1.56.0" ) ]
2269
2269
#[ rustc_const_stable( feature = "unsafe_cell_raw_get" , since = "1.56.0" ) ]
2270
2270
#[ rustc_diagnostic_item = "unsafe_cell_raw_get" ]
0 commit comments