File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1433,6 +1433,7 @@ macro_rules! from_str_radix_int_impl {
1433
1433
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1434
1434
impl FromStr for $t {
1435
1435
type Err = ParseIntError ;
1436
+ #[ inline]
1436
1437
fn from_str( src: & str ) -> Result <Self , ParseIntError > {
1437
1438
<$t>:: from_str_radix( src, 10 )
1438
1439
}
@@ -1505,6 +1506,7 @@ macro_rules! from_str_radix {
1505
1506
/// ```
1506
1507
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1507
1508
#[ rustc_const_stable( feature = "const_int_from_str" , since = "1.82.0" ) ]
1509
+ #[ inline]
1508
1510
pub const fn from_str_radix( src: & str , radix: u32 ) -> Result <$int_ty, ParseIntError > {
1509
1511
use self :: IntErrorKind :: * ;
1510
1512
use self :: ParseIntError as PIE ;
@@ -1649,6 +1651,7 @@ macro_rules! from_str_radix_size_impl {
1649
1651
/// ```
1650
1652
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1651
1653
#[ rustc_const_stable( feature = "const_int_from_str" , since = "1.82.0" ) ]
1654
+ #[ inline]
1652
1655
pub const fn from_str_radix( src: & str , radix: u32 ) -> Result <$size, ParseIntError > {
1653
1656
match <$t>:: from_str_radix( src, radix) {
1654
1657
Ok ( x) => Ok ( x as $size) ,
You can’t perform that action at this time.
0 commit comments