Skip to content

Commit 27d95d3

Browse files
committed
Fix more TryFrom impls for integers.
1 parent 966cf33 commit 27d95d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/num/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2639,14 +2639,14 @@ mod ptr_try_from_impls {
26392639
try_from_both_bounded!(isize, i8);
26402640
try_from_unbounded!(isize, i16, i32, i64, i128);
26412641

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

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

@@ -2670,9 +2670,9 @@ mod ptr_try_from_impls {
26702670
rev!(try_from_lower_bounded, usize, i8, i16, i32);
26712671
rev!(try_from_both_bounded, usize, i64, i128);
26722672

2673-
rev!(try_from_unbounded, isize, u16);
2673+
rev!(try_from_unbounded, isize, u8, u16);
26742674
rev!(try_from_upper_bounded, isize, u32, u64, u128);
2675-
rev!(try_from_unbounded, isize, i8, i16, i32);
2675+
rev!(try_from_unbounded, isize, i16, i32);
26762676
rev!(try_from_both_bounded, isize, i64, i128);
26772677
}
26782678

0 commit comments

Comments
 (0)