@@ -341,7 +341,7 @@ pub fn interrupt(
341
341
}
342
342
343
343
unsafe impl Nr for Interrupt {
344
- #[ inline( always ) ]
344
+ #[ inline]
345
345
fn nr( & self ) -> u8 {
346
346
match * self {
347
347
#( #arms) *
@@ -628,7 +628,7 @@ pub fn register(
628
628
if access == Access :: ReadWrite {
629
629
reg_impl_items. push ( quote ! {
630
630
/// Modifies the contents of the register
631
- #[ inline( always ) ]
631
+ #[ inline]
632
632
pub fn modify<F >( & self , f: F )
633
633
where
634
634
for <' w> F : FnOnce ( & R , & ' w mut W ) -> & ' w mut W
@@ -645,7 +645,7 @@ pub fn register(
645
645
if access == Access :: ReadOnly || access == Access :: ReadWrite {
646
646
reg_impl_items. push ( quote ! {
647
647
/// Reads the contents of the register
648
- #[ inline( always ) ]
648
+ #[ inline]
649
649
pub fn read( & self ) -> R {
650
650
R { bits: self . register. get( ) }
651
651
}
@@ -660,7 +660,7 @@ pub fn register(
660
660
661
661
r_impl_items. push ( quote ! {
662
662
/// Value of the register as raw bits
663
- #[ inline( always ) ]
663
+ #[ inline]
664
664
pub fn bits( & self ) -> #rty {
665
665
self . bits
666
666
}
@@ -670,7 +670,7 @@ pub fn register(
670
670
if access == Access :: WriteOnly || access == Access :: ReadWrite {
671
671
reg_impl_items. push ( quote ! {
672
672
/// Writes to the register
673
- #[ inline( always ) ]
673
+ #[ inline]
674
674
pub fn write<F >( & self , f: F )
675
675
where
676
676
F : FnOnce ( & mut W ) -> & mut W
@@ -699,13 +699,13 @@ pub fn register(
699
699
700
700
w_impl_items. push ( quote ! {
701
701
/// Reset value of the register
702
- #[ inline( always ) ]
702
+ #[ inline]
703
703
pub fn reset_value( ) -> W {
704
704
W { bits: #rv }
705
705
}
706
706
707
707
/// Writes raw bits to the register
708
- #[ inline( always ) ]
708
+ #[ inline]
709
709
pub #unsafety fn bits( & mut self , bits: #rty) -> & mut Self {
710
710
self . bits = bits;
711
711
self
@@ -716,7 +716,7 @@ pub fn register(
716
716
if access == Access :: ReadWrite {
717
717
reg_impl_items. push ( quote ! {
718
718
/// Writes the reset value to the register
719
- #[ inline( always ) ]
719
+ #[ inline]
720
720
pub fn reset( & self ) {
721
721
self . write( |w| w)
722
722
}
@@ -969,7 +969,7 @@ pub fn fields(
969
969
let sc = & f. sc ;
970
970
r_impl_items. push ( quote ! {
971
971
#[ doc = #description]
972
- #[ inline( always ) ]
972
+ #[ inline]
973
973
pub fn #sc( & self ) -> #pc_r {
974
974
#pc_r:: _from( { #value } )
975
975
}
@@ -1029,13 +1029,13 @@ pub fn fields(
1029
1029
if f. width == 1 {
1030
1030
enum_items. push ( quote ! {
1031
1031
/// Returns `true` if the bit is clear (0)
1032
- #[ inline( always ) ]
1032
+ #[ inline]
1033
1033
pub fn bit_is_clear( & self ) -> bool {
1034
1034
!self . #bits( )
1035
1035
}
1036
1036
1037
1037
/// Returns `true` if the bit is set (1)
1038
- #[ inline( always ) ]
1038
+ #[ inline]
1039
1039
pub fn bit_is_set( & self ) -> bool {
1040
1040
self . #bits( )
1041
1041
}
@@ -1044,7 +1044,7 @@ pub fn fields(
1044
1044
1045
1045
enum_items. push ( quote ! {
1046
1046
/// Value of the field as raw bits
1047
- #[ inline( always ) ]
1047
+ #[ inline]
1048
1048
pub fn #bits( & self ) -> #fty {
1049
1049
match * self {
1050
1050
#( #arms) , *
@@ -1077,7 +1077,7 @@ pub fn fields(
1077
1077
enum_items. push ( quote ! {
1078
1078
#[ allow( missing_docs) ]
1079
1079
#[ doc( hidden) ]
1080
- #[ inline( always ) ]
1080
+ #[ inline]
1081
1081
pub fn _from( value: #fty) -> #pc_r {
1082
1082
match value {
1083
1083
#( #arms) , * ,
@@ -1101,7 +1101,7 @@ pub fn fields(
1101
1101
) ;
1102
1102
enum_items. push ( quote ! {
1103
1103
#[ doc = #doc]
1104
- #[ inline( always ) ]
1104
+ #[ inline]
1105
1105
pub fn #is_variant( & self ) -> bool {
1106
1106
* self == #pc_r:: #pc
1107
1107
}
@@ -1120,7 +1120,7 @@ pub fn fields(
1120
1120
let sc = & f. sc ;
1121
1121
r_impl_items. push ( quote ! {
1122
1122
#[ doc = #description]
1123
- #[ inline( always ) ]
1123
+ #[ inline]
1124
1124
pub fn #sc( & self ) -> #pc_r {
1125
1125
let bits = { #value } ;
1126
1126
#pc_r { bits }
@@ -1129,7 +1129,7 @@ pub fn fields(
1129
1129
1130
1130
let mut pc_r_impl_items = vec ! [ quote! {
1131
1131
/// Value of the field as raw bits
1132
- #[ inline( always ) ]
1132
+ #[ inline]
1133
1133
pub fn #bits( & self ) -> #fty {
1134
1134
self . bits
1135
1135
}
@@ -1138,13 +1138,13 @@ pub fn fields(
1138
1138
if f. width == 1 {
1139
1139
pc_r_impl_items. push ( quote ! {
1140
1140
/// Returns `true` if the bit is clear (0)
1141
- #[ inline( always ) ]
1141
+ #[ inline]
1142
1142
pub fn bit_is_clear( & self ) -> bool {
1143
1143
!self . #bits( )
1144
1144
}
1145
1145
1146
1146
/// Returns `true` if the bit is set (1)
1147
- #[ inline( always ) ]
1147
+ #[ inline]
1148
1148
pub fn bit_is_set( & self ) -> bool {
1149
1149
self . #bits( )
1150
1150
}
@@ -1305,7 +1305,7 @@ pub fn fields(
1305
1305
impl #pc_w {
1306
1306
#[ allow( missing_docs) ]
1307
1307
#[ doc( hidden) ]
1308
- #[ inline( always ) ]
1308
+ #[ inline]
1309
1309
pub fn _bits( & self ) -> #fty {
1310
1310
match * self {
1311
1311
#( #arms) , *
@@ -1318,7 +1318,7 @@ pub fn fields(
1318
1318
1319
1319
proxy_items. push ( quote ! {
1320
1320
/// Writes `variant` to the field
1321
- #[ inline( always ) ]
1321
+ #[ inline]
1322
1322
pub fn variant( self , variant: #pc_w) -> & ' a mut W {
1323
1323
#unsafety {
1324
1324
self . #bits( variant. _bits( ) )
@@ -1334,15 +1334,15 @@ pub fn fields(
1334
1334
if let Some ( enum_) = base_pc_w. as_ref ( ) {
1335
1335
proxy_items. push ( quote ! {
1336
1336
#[ doc = #doc]
1337
- #[ inline( always ) ]
1337
+ #[ inline]
1338
1338
pub fn #sc( self ) -> & ' a mut W {
1339
1339
self . variant( #enum_:: #pc)
1340
1340
}
1341
1341
} ) ;
1342
1342
} else {
1343
1343
proxy_items. push ( quote ! {
1344
1344
#[ doc = #doc]
1345
- #[ inline( always ) ]
1345
+ #[ inline]
1346
1346
pub fn #sc( self ) -> & ' a mut W {
1347
1347
self . variant( #pc_w:: #pc)
1348
1348
}
@@ -1367,7 +1367,7 @@ pub fn fields(
1367
1367
1368
1368
proxy_items. push ( quote ! {
1369
1369
/// Writes raw bits to the field
1370
- #[ inline( always ) ]
1370
+ #[ inline]
1371
1371
pub #unsafety fn #bits( self , value: #fty) -> & ' a mut W {
1372
1372
const MASK : #fty = #mask;
1373
1373
const OFFSET : u8 = #offset;
@@ -1394,7 +1394,7 @@ pub fn fields(
1394
1394
let sc = & f. sc ;
1395
1395
w_impl_items. push ( quote ! {
1396
1396
#[ doc = #description]
1397
- #[ inline( always ) ]
1397
+ #[ inline]
1398
1398
pub fn #sc( & mut self ) -> #_pc_w {
1399
1399
#_pc_w { w: self }
1400
1400
}
0 commit comments