bors 4f82dd83df Auto merge of #7948 - 5225225:castlosslessbool, r=llogiq
Lint for bool to integer casts in `cast_lossless`

The lint description says

> Checks for casts between *numerical* types that may be replaced by safe conversion functions.

Which is strictly speaking being violated here, but it seems within the spirit of the lint. I think it is still a useful lint to have, and having a different lint for just this feels excessive. Thoughts?

Fixes #7947

changelog: Lint for bool to integer casts in [`cast_lossless`]
2021-11-12 18:17:18 +00:00
..
2021-11-11 09:38:00 -06:00
2021-11-02 17:04:35 -04:00
2021-09-07 05:50:04 +02:00
2021-11-10 16:37:55 -06:00
2021-03-29 16:10:37 -04:00
2021-10-26 10:52:35 -07:00
2019-12-21 16:20:30 +01:00
2019-11-07 17:11:06 +01:00
2021-11-01 19:33:27 -04:00
2021-11-01 19:33:27 -04:00
2021-11-01 19:33:27 -04:00
2021-11-01 19:33:27 -04:00
2021-09-30 14:07:58 -05:00
2021-10-30 14:50:53 +02:00
2020-10-25 17:41:30 +08:00
2020-01-07 18:38:12 +09:00
2020-09-26 23:10:25 +09:00
2019-01-08 21:46:39 +01:00
2021-10-28 09:38:01 -05:00
2021-10-26 13:55:51 -07:00
2021-04-15 22:09:20 -04:00
2021-10-26 09:05:28 +02:00
2021-10-26 09:05:28 +02:00
2021-08-11 14:21:33 +00:00
2019-11-10 15:52:59 +02:00
2021-04-18 23:49:54 +02:00
2021-10-27 06:32:37 -07:00
2021-10-27 06:32:37 -07:00
2021-02-10 11:57:28 +01:00
2021-10-30 14:50:53 +02:00