@@ -340,7 +340,7 @@ pub fn interrupt(
340
340
}
341
341
342
342
unsafe impl Nr for Interrupt {
343
- #[ inline( always ) ]
343
+ #[ inline]
344
344
fn nr( & self ) -> u8 {
345
345
match * self {
346
346
#( #arms) *
@@ -693,7 +693,7 @@ pub fn register(
693
693
if access == Access :: ReadWrite {
694
694
reg_impl_items. push ( quote ! {
695
695
/// Modifies the contents of the register
696
- #[ inline( always ) ]
696
+ #[ inline]
697
697
pub fn modify<F >( & self , f: F )
698
698
where
699
699
for <' w> F : FnOnce ( & R , & ' w mut W ) -> & ' w mut W
@@ -710,7 +710,7 @@ pub fn register(
710
710
if access == Access :: ReadOnly || access == Access :: ReadWrite {
711
711
reg_impl_items. push ( quote ! {
712
712
/// Reads the contents of the register
713
- #[ inline( always ) ]
713
+ #[ inline]
714
714
pub fn read( & self ) -> R {
715
715
R { bits: self . register. get( ) }
716
716
}
@@ -725,7 +725,7 @@ pub fn register(
725
725
726
726
r_impl_items. push ( quote ! {
727
727
/// Value of the register as raw bits
728
- #[ inline( always ) ]
728
+ #[ inline]
729
729
pub fn bits( & self ) -> #rty {
730
730
self . bits
731
731
}
@@ -735,7 +735,7 @@ pub fn register(
735
735
if access == Access :: WriteOnly || access == Access :: ReadWrite {
736
736
reg_impl_items. push ( quote ! {
737
737
/// Writes to the register
738
- #[ inline( always ) ]
738
+ #[ inline]
739
739
pub fn write<F >( & self , f: F )
740
740
where
741
741
F : FnOnce ( & mut W ) -> & mut W
@@ -764,13 +764,13 @@ pub fn register(
764
764
765
765
w_impl_items. push ( quote ! {
766
766
/// Reset value of the register
767
- #[ inline( always ) ]
767
+ #[ inline]
768
768
pub fn reset_value( ) -> W {
769
769
W { bits: #rv }
770
770
}
771
771
772
772
/// Writes raw bits to the register
773
- #[ inline( always ) ]
773
+ #[ inline]
774
774
pub #unsafety fn bits( & mut self , bits: #rty) -> & mut Self {
775
775
self . bits = bits;
776
776
self
@@ -781,7 +781,7 @@ pub fn register(
781
781
if access == Access :: ReadWrite {
782
782
reg_impl_items. push ( quote ! {
783
783
/// Writes the reset value to the register
784
- #[ inline( always ) ]
784
+ #[ inline]
785
785
pub fn reset( & self ) {
786
786
self . write( |w| w)
787
787
}
@@ -1034,7 +1034,7 @@ pub fn fields(
1034
1034
let sc = & f. sc ;
1035
1035
r_impl_items. push ( quote ! {
1036
1036
#[ doc = #description]
1037
- #[ inline( always ) ]
1037
+ #[ inline]
1038
1038
pub fn #sc( & self ) -> #pc_r {
1039
1039
#pc_r:: _from( { #value } )
1040
1040
}
@@ -1094,13 +1094,13 @@ pub fn fields(
1094
1094
if f. width == 1 {
1095
1095
enum_items. push ( quote ! {
1096
1096
/// Returns `true` if the bit is clear (0)
1097
- #[ inline( always ) ]
1097
+ #[ inline]
1098
1098
pub fn bit_is_clear( & self ) -> bool {
1099
1099
!self . #bits( )
1100
1100
}
1101
1101
1102
1102
/// Returns `true` if the bit is set (1)
1103
- #[ inline( always ) ]
1103
+ #[ inline]
1104
1104
pub fn bit_is_set( & self ) -> bool {
1105
1105
self . #bits( )
1106
1106
}
@@ -1109,7 +1109,7 @@ pub fn fields(
1109
1109
1110
1110
enum_items. push ( quote ! {
1111
1111
/// Value of the field as raw bits
1112
- #[ inline( always ) ]
1112
+ #[ inline]
1113
1113
pub fn #bits( & self ) -> #fty {
1114
1114
match * self {
1115
1115
#( #arms) , *
@@ -1142,7 +1142,7 @@ pub fn fields(
1142
1142
enum_items. push ( quote ! {
1143
1143
#[ allow( missing_docs) ]
1144
1144
#[ doc( hidden) ]
1145
- #[ inline( always ) ]
1145
+ #[ inline]
1146
1146
pub fn _from( value: #fty) -> #pc_r {
1147
1147
match value {
1148
1148
#( #arms) , * ,
@@ -1166,7 +1166,7 @@ pub fn fields(
1166
1166
) ;
1167
1167
enum_items. push ( quote ! {
1168
1168
#[ doc = #doc]
1169
- #[ inline( always ) ]
1169
+ #[ inline]
1170
1170
pub fn #is_variant( & self ) -> bool {
1171
1171
* self == #pc_r:: #pc
1172
1172
}
@@ -1185,7 +1185,7 @@ pub fn fields(
1185
1185
let sc = & f. sc ;
1186
1186
r_impl_items. push ( quote ! {
1187
1187
#[ doc = #description]
1188
- #[ inline( always ) ]
1188
+ #[ inline]
1189
1189
pub fn #sc( & self ) -> #pc_r {
1190
1190
let bits = { #value } ;
1191
1191
#pc_r { bits }
@@ -1194,7 +1194,7 @@ pub fn fields(
1194
1194
1195
1195
let mut pc_r_impl_items = vec ! [ quote! {
1196
1196
/// Value of the field as raw bits
1197
- #[ inline( always ) ]
1197
+ #[ inline]
1198
1198
pub fn #bits( & self ) -> #fty {
1199
1199
self . bits
1200
1200
}
@@ -1203,13 +1203,13 @@ pub fn fields(
1203
1203
if f. width == 1 {
1204
1204
pc_r_impl_items. push ( quote ! {
1205
1205
/// Returns `true` if the bit is clear (0)
1206
- #[ inline( always ) ]
1206
+ #[ inline]
1207
1207
pub fn bit_is_clear( & self ) -> bool {
1208
1208
!self . #bits( )
1209
1209
}
1210
1210
1211
1211
/// Returns `true` if the bit is set (1)
1212
- #[ inline( always ) ]
1212
+ #[ inline]
1213
1213
pub fn bit_is_set( & self ) -> bool {
1214
1214
self . #bits( )
1215
1215
}
@@ -1370,7 +1370,7 @@ pub fn fields(
1370
1370
impl #pc_w {
1371
1371
#[ allow( missing_docs) ]
1372
1372
#[ doc( hidden) ]
1373
- #[ inline( always ) ]
1373
+ #[ inline]
1374
1374
pub fn _bits( & self ) -> #fty {
1375
1375
match * self {
1376
1376
#( #arms) , *
@@ -1383,7 +1383,7 @@ pub fn fields(
1383
1383
1384
1384
proxy_items. push ( quote ! {
1385
1385
/// Writes `variant` to the field
1386
- #[ inline( always ) ]
1386
+ #[ inline]
1387
1387
pub fn variant( self , variant: #pc_w) -> & ' a mut W {
1388
1388
#unsafety {
1389
1389
self . #bits( variant. _bits( ) )
@@ -1399,15 +1399,15 @@ pub fn fields(
1399
1399
if let Some ( enum_) = base_pc_w. as_ref ( ) {
1400
1400
proxy_items. push ( quote ! {
1401
1401
#[ doc = #doc]
1402
- #[ inline( always ) ]
1402
+ #[ inline]
1403
1403
pub fn #sc( self ) -> & ' a mut W {
1404
1404
self . variant( #enum_:: #pc)
1405
1405
}
1406
1406
} ) ;
1407
1407
} else {
1408
1408
proxy_items. push ( quote ! {
1409
1409
#[ doc = #doc]
1410
- #[ inline( always ) ]
1410
+ #[ inline]
1411
1411
pub fn #sc( self ) -> & ' a mut W {
1412
1412
self . variant( #pc_w:: #pc)
1413
1413
}
@@ -1432,7 +1432,7 @@ pub fn fields(
1432
1432
1433
1433
proxy_items. push ( quote ! {
1434
1434
/// Writes raw bits to the field
1435
- #[ inline( always ) ]
1435
+ #[ inline]
1436
1436
pub #unsafety fn #bits( self , value: #fty) -> & ' a mut W {
1437
1437
const MASK : #fty = #mask;
1438
1438
const OFFSET : u8 = #offset;
@@ -1459,7 +1459,7 @@ pub fn fields(
1459
1459
let sc = & f. sc ;
1460
1460
w_impl_items. push ( quote ! {
1461
1461
#[ doc = #description]
1462
- #[ inline( always ) ]
1462
+ #[ inline]
1463
1463
pub fn #sc( & mut self ) -> #_pc_w {
1464
1464
#_pc_w { w: self }
1465
1465
}
0 commit comments