diff options
| author | Samrat Man Singh <samratmansingh@gmail.com> | 2020-04-28 00:13:37 +0530 |
|---|---|---|
| committer | Samrat Man Singh <samratmansingh@gmail.com> | 2020-04-28 00:43:20 +0530 |
| commit | 1f0a864570d79807c7843ebb995fdcdd384ff3c9 (patch) | |
| tree | 6076d6f01de52e7b74b75db5fb7eaa6c6d342eb2 /src/liballoc/alloc | |
| parent | 46ec74e60f238f694b46c976d6217e7cf8d4cf1a (diff) | |
| download | rust-1f0a864570d79807c7843ebb995fdcdd384ff3c9.tar.gz rust-1f0a864570d79807c7843ebb995fdcdd384ff3c9.zip | |
Suggest `into` instead of `try_into` if possible with int types
If it is possible to convert an integer type into another using
`into`, don't suggest `try_into`. This commit changes the suggested
method to convert from one integer type to another for the following
cases:
- u{n} -> i{m} where n < m
- u8 -> isize
- i{n} -> isize where n <= 16
- u{n} -> usize where n <= 16
Diffstat (limited to 'src/liballoc/alloc')
0 files changed, 0 insertions, 0 deletions
