Skip to content

Commit ba74a86

Browse files
committed
Add back mistakenly removed numeric conversions.
1 parent 4d2a8c5 commit ba74a86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/num/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2638,14 +2638,14 @@ mod ptr_try_from_impls {
26382638
try_from_both_bounded!(isize, i8);
26392639
try_from_unbounded!(isize, i16, i32, i64, i128);
26402640

2641-
rev!(try_from_unbounded, usize, u16);
2641+
rev!(try_from_unbounded, usize, u8, u16);
26422642
rev!(try_from_upper_bounded, usize, u32, u64, u128);
26432643
rev!(try_from_lower_bounded, usize, i8, i16);
26442644
rev!(try_from_both_bounded, usize, i32, i64, i128);
26452645

26462646
rev!(try_from_unbounded, isize, u8);
26472647
rev!(try_from_upper_bounded, isize, u16, u32, u64, u128);
2648-
rev!(try_from_unbounded, isize, i16);
2648+
rev!(try_from_unbounded, isize, i8, i16);
26492649
rev!(try_from_both_bounded, isize, i32, i64, i128);
26502650
}
26512651

@@ -2664,14 +2664,14 @@ mod ptr_try_from_impls {
26642664
try_from_both_bounded!(isize, i8, i16);
26652665
try_from_unbounded!(isize, i32, i64, i128);
26662666

2667-
rev!(try_from_unbounded, usize, u16, u32);
2667+
rev!(try_from_unbounded, usize, u8, u16, u32);
26682668
rev!(try_from_upper_bounded, usize, u64, u128);
26692669
rev!(try_from_lower_bounded, usize, i8, i16, i32);
26702670
rev!(try_from_both_bounded, usize, i64, i128);
26712671

26722672
rev!(try_from_unbounded, isize, u8, u16);
26732673
rev!(try_from_upper_bounded, isize, u32, u64, u128);
2674-
rev!(try_from_unbounded, isize, i16, i32);
2674+
rev!(try_from_unbounded, isize, i8, i16, i32);
26752675
rev!(try_from_both_bounded, isize, i64, i128);
26762676
}
26772677

0 commit comments

Comments
 (0)