@@ -816,12 +816,12 @@ const fn panic_already_mutably_borrowed(err: BorrowError) -> ! {
816816type BorrowCounter = isize ;
817817const UNUSED : BorrowCounter = 0 ;
818818
819- #[ inline ( always ) ]
819+ #[ rustc_early_inline ]
820820const fn is_writing ( x : BorrowCounter ) -> bool {
821821 x < UNUSED
822822}
823823
824- #[ inline ( always ) ]
824+ #[ rustc_early_inline ]
825825const fn is_reading ( x : BorrowCounter ) -> bool {
826826 x > UNUSED
827827}
@@ -2112,7 +2112,7 @@ impl<T> UnsafeCell<T> {
21122112 /// ```
21132113 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
21142114 #[ rustc_const_stable( feature = "const_unsafe_cell_new" , since = "1.32.0" ) ]
2115- #[ inline ( always ) ]
2115+ #[ rustc_early_inline ]
21162116 pub const fn new ( value : T ) -> UnsafeCell < T > {
21172117 UnsafeCell { value }
21182118 }
@@ -2128,7 +2128,7 @@ impl<T> UnsafeCell<T> {
21282128 ///
21292129 /// let five = uc.into_inner();
21302130 /// ```
2131- #[ inline ( always ) ]
2131+ #[ rustc_early_inline ]
21322132 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
21332133 #[ rustc_const_stable( feature = "const_cell_into_inner" , since = "1.83.0" ) ]
21342134 #[ rustc_allow_const_fn_unstable( const_precise_live_drops) ]
@@ -2180,7 +2180,7 @@ impl<T: ?Sized> UnsafeCell<T> {
21802180 /// *uc.get_mut() -= 1;
21812181 /// assert_eq!(*uc.get_mut(), 41);
21822182 /// ```
2183- #[ inline ( always ) ]
2183+ #[ rustc_early_inline ]
21842184 #[ stable( feature = "unsafe_cell_from_mut" , since = "1.84.0" ) ]
21852185 #[ rustc_const_stable( feature = "unsafe_cell_from_mut" , since = "1.84.0" ) ]
21862186 pub const fn from_mut ( value : & mut T ) -> & mut UnsafeCell < T > {
@@ -2203,7 +2203,7 @@ impl<T: ?Sized> UnsafeCell<T> {
22032203 ///
22042204 /// let five = uc.get();
22052205 /// ```
2206- #[ inline ( always ) ]
2206+ #[ rustc_early_inline ]
22072207 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
22082208 #[ rustc_const_stable( feature = "const_unsafecell_get" , since = "1.32.0" ) ]
22092209 #[ rustc_as_ptr]
@@ -2230,7 +2230,7 @@ impl<T: ?Sized> UnsafeCell<T> {
22302230 ///
22312231 /// assert_eq!(*c.get_mut(), 6);
22322232 /// ```
2233- #[ inline ( always ) ]
2233+ #[ rustc_early_inline ]
22342234 #[ stable( feature = "unsafe_cell_get_mut" , since = "1.50.0" ) ]
22352235 #[ rustc_const_stable( feature = "const_unsafecell_get_mut" , since = "1.83.0" ) ]
22362236 pub const fn get_mut ( & mut self ) -> & mut T {
@@ -2264,7 +2264,7 @@ impl<T: ?Sized> UnsafeCell<T> {
22642264 ///
22652265 /// assert_eq!(uc.into_inner(), 5);
22662266 /// ```
2267- #[ inline ( always ) ]
2267+ #[ rustc_early_inline ]
22682268 #[ stable( feature = "unsafe_cell_raw_get" , since = "1.56.0" ) ]
22692269 #[ rustc_const_stable( feature = "unsafe_cell_raw_get" , since = "1.56.0" ) ]
22702270 #[ rustc_diagnostic_item = "unsafe_cell_raw_get" ]
0 commit comments