rust/clippy_utils/src
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
..
ast_utils Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
ast_utils.rs Merge commit 'cb7915b00c' into clippyup 2021-09-28 18:03:12 +01:00
attrs.rs Added clippy::version attribute as lint metadata 2021-11-10 19:48:29 +01:00
comparisons.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
consts.rs Simplify FullInt Ord impl 2021-10-30 06:22:19 +02:00
diagnostics.rs Update diagnostics.rs 2021-11-04 11:57:14 +08:00
eager_or_lazy.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
higher.rs Auto merge of #7906 - smoelius:master, r=camsteffen 2021-11-02 14:06:36 +00:00
hir_utils.rs Merge commit 'cb7915b00c' into clippyup 2021-09-28 18:03:12 +01:00
lib.rs Check for no_std and no_core attribute in swap lint 2021-11-11 12:30:07 +08:00
msrvs.rs Auto merge of #7948 - 5225225:castlosslessbool, r=llogiq 2021-11-12 18:17:18 +00:00
numeric_literal.rs Merge commit 'b7f3f7f608' into clippyup 2021-10-07 11:21:30 +02:00
paths.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-10-21 12:18:12 +02:00
ptr.rs Factor in some expr_visitor usages 2021-11-05 14:39:39 -05:00
qualify_min_const_fn.rs Rollup merge of #88963 - fee1-dead:const-iterator, r=oli-obk 2021-10-01 14:46:48 -07:00
source.rs fix dogfood lint on clippy_utils 2021-11-09 17:30:15 +00:00
str_utils.rs Refactored some string handling to prevent ICEs and FNs 2021-10-24 22:47:39 +02:00
sugg.rs Some "parenthesis" and "parentheses" fixes 2021-10-17 12:04:01 +02:00
sym_helper.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
ty.rs New index_refutable_slice lint 2021-11-11 17:34:02 +01:00
usage.rs Factor in some expr_visitor usages 2021-11-05 14:39:39 -05:00
visitors.rs Factor in some expr_visitor usages 2021-11-05 14:39:39 -05:00