File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1412,11 +1412,9 @@ fn from_str_radix_panic_rt(radix: u32) -> ! {
1412
1412
#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
1413
1413
#[ cold]
1414
1414
#[ track_caller]
1415
- const fn from_str_radix_assert ( radix : u32 ) {
1416
- if 2 > radix || radix > 36 {
1417
- // The only difference between these two functions is their panic message.
1418
- intrinsics:: const_eval_select ( ( radix, ) , from_str_radix_panic_ct, from_str_radix_panic_rt) ;
1419
- }
1415
+ const fn from_str_radix_panic ( radix : u32 ) {
1416
+ // The only difference between these two functions is their panic message.
1417
+ intrinsics:: const_eval_select ( ( radix, ) , from_str_radix_panic_ct, from_str_radix_panic_rt) ;
1420
1418
}
1421
1419
1422
1420
macro_rules! from_str_radix {
@@ -1450,7 +1448,9 @@ macro_rules! from_str_radix {
1450
1448
use self :: IntErrorKind :: * ;
1451
1449
use self :: ParseIntError as PIE ;
1452
1450
1453
- from_str_radix_assert( radix) ;
1451
+ if 2 > radix || radix > 36 {
1452
+ from_str_radix_panic( radix) ;
1453
+ }
1454
1454
1455
1455
if src. is_empty( ) {
1456
1456
return Err ( PIE { kind: Empty } ) ;
You can’t perform that action at this time.
0 commit comments