rust/tests
Dan Gohman 6ff77b96f1 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 .

changelog: [`cast_lossless`] no longer gives wrong suggestion on usize->f64
2022-05-02 13:52:13 -07:00
..
test_utils Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup 2022-01-13 13:18:19 +01:00
ui Fix cast_lossless to avoid warning on usize to f64 conversion. 2022-05-02 13:52:13 -07:00
ui-cargo Handle relative paths in module_files lints 2022-03-30 18:44:04 +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 Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup 2022-01-13 13:18:19 +01:00
check-fmt.rs Run fmt test before compile-test/dogfood 2022-04-02 12:34:06 +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 Remove cargo_metadata dependency from clippy 2022-04-01 23:18:47 -04:00
workspace.rs resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00