diff options
| author | bors <bors@rust-lang.org> | 2021-11-12 18:17:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-11-12 18:17:18 +0000 |
| commit | 4f82dd83dfd6f64708b4f0d572c567dfeb7b2092 (patch) | |
| tree | ee8fcd725965b4b674500aefbe2eaea058fe2ec9 /src/test/codegen | |
| parent | 610b381966fd984e801272ab790eb4194b1c93de (diff) | |
| parent | d4c8cb63a474c2365664a68e35153adef3cdd9b9 (diff) | |
| download | rust-4f82dd83dfd6f64708b4f0d572c567dfeb7b2092.tar.gz rust-4f82dd83dfd6f64708b4f0d572c567dfeb7b2092.zip | |
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`]
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions
