File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 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 {
14331433 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
14341434 impl FromStr for $t {
14351435 type Err = ParseIntError ;
1436+ #[ inline]
14361437 fn from_str( src: & str ) -> Result <Self , ParseIntError > {
14371438 <$t>:: from_str_radix( src, 10 )
14381439 }
@@ -1505,6 +1506,7 @@ macro_rules! from_str_radix {
15051506 /// ```
15061507 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
15071508 #[ rustc_const_stable( feature = "const_int_from_str" , since = "1.82.0" ) ]
1509+ #[ inline]
15081510 pub const fn from_str_radix( src: & str , radix: u32 ) -> Result <$int_ty, ParseIntError > {
15091511 use self :: IntErrorKind :: * ;
15101512 use self :: ParseIntError as PIE ;
@@ -1649,6 +1651,7 @@ macro_rules! from_str_radix_size_impl {
16491651 /// ```
16501652 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
16511653 #[ rustc_const_stable( feature = "const_int_from_str" , since = "1.82.0" ) ]
1654+ #[ inline]
16521655 pub const fn from_str_radix( src: & str , radix: u32 ) -> Result <$size, ParseIntError > {
16531656 match <$t>:: from_str_radix( src, radix) {
16541657 Ok ( x) => Ok ( x as $size) ,
You can’t perform that action at this time.
0 commit comments