diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-29 19:39:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-29 19:39:33 +0200 |
| commit | e3bf8709db5e136949cc547e7f5d27e559a95624 (patch) | |
| tree | f895d07a4a74e0e9d167e6e0fb4caf8a6f729d7d /src/liballoc/alloc | |
| parent | 843ffb8e8a37b4ddd134d97eb456556469d041a9 (diff) | |
| parent | a6033e33e7199646b269c0f3504591b108670fef (diff) | |
| download | rust-e3bf8709db5e136949cc547e7f5d27e559a95624.tar.gz rust-e3bf8709db5e136949cc547e7f5d27e559a95624.zip | |
Rollup merge of #71617 - samrat:suggest-int-into, r=ecstatic-morse
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
Fixes #71580
Diffstat (limited to 'src/liballoc/alloc')
0 files changed, 0 insertions, 0 deletions
