bors c8a056547b Auto merge of #10564 - asquared31415:cast_doesnt_wrap, r=giraffate
make cast_possible_wrap work correctly for 16 bit {u,i}size

These changes make `cast_possible_wrap` aware of the different pointer widths and fixes the implementation to print the correct pointer widths.

Fixes #9337

changelog: `cast_possible_wrap` does not lint on `u8 as isize` or `usize as i8`, since these can never wrap.
`cast_possible_wrap` now properly considers 16 bit pointer size and prints the correct bit widths.
2023-06-06 23:54:27 +00:00
..
2023-05-24 11:06:56 -05:00
2023-05-24 11:06:56 -05:00
2023-06-06 14:58:54 -04:00
2023-05-18 16:42:13 -04:00
2022-10-01 10:03:06 +00:00
fix
2023-01-12 14:22:18 +01:00
2022-07-29 19:35:39 +01:00
2022-04-21 10:03:01 +02:00
2023-05-31 17:30:23 -05:00
2023-05-31 17:30:23 -05:00
2022-06-16 18:00:32 +04:00
2022-01-04 22:32:02 +00:00
2023-03-08 14:40:38 +00:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2022-12-18 03:02:45 +03:00
2022-10-01 10:03:06 +00:00
2023-05-03 20:55:14 +02:00
2023-05-03 20:55:14 +02:00
2023-04-27 17:18:12 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2020-07-14 09:20:19 -07:00
2023-05-21 15:07:53 +02:00
2023-06-02 14:46:27 +02:00
2023-06-02 14:46:27 +02:00
2021-08-11 14:21:33 +00:00
2020-11-08 18:32:12 -05:00
2022-10-01 13:58:41 -06:00
2022-03-30 20:12:58 +02:00
2022-07-29 19:35:39 +01:00
2022-01-16 09:20:33 -08:00
2022-10-01 10:03:06 +00:00
2020-12-07 23:38:56 +01:00
2019-01-08 21:46:39 +01:00
2023-06-02 13:26:12 -05:00
2023-06-02 13:26:12 -05:00
2019-12-18 18:59:43 +02:00
2022-10-01 10:03:06 +00:00
2023-05-08 13:20:33 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2023-04-23 10:52:27 -04:00
2022-10-01 10:03:06 +00:00
2023-05-22 23:00:28 -04:00
2023-05-22 23:00:28 -04:00
2023-05-22 20:02:45 -04:00
2023-05-22 23:00:28 -04:00
2023-05-22 23:00:28 -04:00
2023-05-22 20:02:45 -04:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2021-11-17 08:38:45 +08:00
WIP
2023-04-30 13:45:45 +01:00
2021-07-27 16:26:50 -04:00
2023-04-23 10:52:27 -04:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2020-01-07 18:38:12 +09:00
2022-10-01 10:03:06 +00:00
2023-05-03 20:55:14 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2023-05-08 18:38:41 +02:00
fix
2022-04-23 22:45:26 +09:00