rust/tests
bors 5dad51736c Auto merge of #8778 - sunfishcode:main, r=giraffate
Fix `cast_lossless` to avoid warning on `usize` to `f64` conversion.

Previously, the `cast_lossless` lint would issue a warning on code that
converted a `usize` value to `f64`, on 32-bit targets.

`usize` to `f64` is a lossless cast on 32-bit targets, however there is
no corresponding `f64::from` that takes a `usize`, so `cast_lossless`'s
suggested replacement does not compile.

This PR disables the lint in the case of casting from `usize` or `isize`.

Fixes #3689.

changelog: [`cast_lossless`] no longer gives wrong suggestion on usize,isize->f64
2022-05-06 00:26:18 +00:00
..
test_utils
ui Auto merge of #8778 - sunfishcode:main, r=giraffate 2022-05-06 00:26:18 +00:00
ui-cargo Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
ui-internal collapsible <> collspible 2022-04-15 14:19:01 -07:00
ui-toml Add large_include_file lint 2022-04-24 10:08:31 -04:00
workspace_test
check-fmt.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
clippy.toml
compile-test.rs fixup! Add await_holding_invalid_type lint 2022-04-15 14:45:58 -07:00
dogfood.rs dogfood: allow unknown lints when not running with internal feature 2022-04-22 13:15:11 +01:00
integration.rs
lint_message_convention.rs adding spell checking 2022-04-15 14:18:09 -07:00
missing-test-files.rs
versioncheck.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
workspace.rs