bors
7d34406015
Auto merge of #11669 - y21:issue11577, r=Jarcho
...
new lint: `unnecessary_fallible_conversions`
Closes #11577
A new lint that looks for calls such as `i64::try_from(1i32)` and suggests `i64::from(1i32)`. See lint description (and linked issue) for more details for why.
There's a tiny bit of overlap with the `useless_conversion` lint, in that the other one warns `T::try_from(T)` (i.e., fallibly converting to the same type), so this lint ignores cases like `i32::try_from(1i32)` to avoid emitting two warnings for the same expression.
Also, funnily enough, with this one exception, this lint would warn on exactly every case in the `useless_conversion_try` ui test that `useless_conversion` didn't cover (but never two warnings at the same time), which is neat. I did add an `#![allow]` though since we don't want interleaved warnings from multiple lints in the same uitest.
changelog: new lint: `unnecessary_fallible_conversions`
2023-10-31 05:13:48 +00:00
..
2023-10-13 17:12:41 +09:00
2023-10-06 17:35:45 +02:00
2023-10-20 21:14:01 +00:00
2023-10-29 23:04:17 +01:00
2023-10-06 17:35:45 +02:00
2023-10-18 19:20:08 +02:00
2023-10-06 17:35:45 +02:00
2023-10-18 23:53:18 +00:00
2023-10-29 17:34:11 +01:00
2023-10-29 17:34:11 +01:00
2023-10-27 16:28:10 +02:00
2023-10-27 16:28:10 +02:00
2023-10-27 16:28:10 +02:00
2023-10-04 21:09:54 +00:00
2023-10-03 02:25:32 +00:00
2023-10-04 18:07:54 +02:00
2023-10-04 18:07:54 +02:00
2023-10-04 18:07:54 +02:00
2023-10-17 10:41:15 +08:00
2023-10-17 10:41:15 +08:00
2023-10-17 10:41:15 +08:00
2023-10-08 23:49:32 +02:00
2023-10-08 23:49:32 +02:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-22 20:19:31 +02:00
2023-10-22 20:19:31 +02:00
2023-10-22 20:19:31 +02:00
2023-10-22 20:19:31 +02:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-12 19:12:42 +00:00
2023-10-12 19:12:42 +00:00
2023-10-12 19:12:42 +00:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-30 20:54:24 +01:00
2023-10-30 20:54:24 +01:00
2023-10-30 20:54:24 +01:00
2023-10-21 15:40:34 +02:00
2023-10-21 15:40:34 +02:00
2023-10-21 15:40:34 +02:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-23 20:05:10 +00:00
2023-10-23 20:05:10 +00:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-14 23:15:00 +02:00
2023-10-04 21:09:54 +00:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-18 21:17:32 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-23 14:37:13 +00:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-07 01:28:06 +09:00
2023-10-07 01:28:06 +09:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-18 19:20:08 +02:00
2023-10-18 19:20:08 +02:00
2023-10-30 20:54:24 +01:00
2023-10-30 20:54:24 +01:00
2023-10-30 20:54:24 +01:00
2023-10-30 20:54:24 +01:00
2023-10-30 20:54:24 +01:00
2023-10-16 00:47:13 +02:00
2023-10-16 00:47:13 +02:00
2023-10-16 00:47:13 +02:00
2023-10-16 00:47:13 +02:00
2023-10-16 00:47:13 +02:00
2023-10-04 21:09:54 +00:00
2023-10-04 21:09:54 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-30 20:54:24 +01:00
2023-10-25 15:15:29 +02:00
2023-10-25 15:15:29 +02:00
2023-10-25 15:15:29 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00
2023-10-06 17:35:45 +02:00