rust/tests
Philipp Krones 75d43aac73
Rollup merge of #5443 - thiagoarrais:issue-2040, r=flip1995
Some accuracy lints for floating point operations

This will add some lints for accuracy on floating point operations suggested by @clarfon in #2040 (fixes #2040).

These are the remaining lints:

- [x] x.powi(2) => x * x
- [x] x.logN() / y.logN() => x.logbase(y)
- [x] x.logbase(E) => x.log()
- [x] x.logbase(10) => x.log10()
- [x] x.logbase(2) => x.log2().
- [x] x * PI / 180 => x.to_radians()
- [x] x * 180 / PI => x.to_degrees()
- [x] (x + 1).log() => x.log_1p()
- [x] sqrt(x * x + y * y) => x.hypot(y)

changelog: Included some accuracy lints for floating point operations
2020-07-13 15:59:41 +02:00
..
auxiliary
cargo
ui Rollup merge of #5443 - thiagoarrais:issue-2040, r=flip1995 2020-07-13 15:59:41 +02:00
ui-cargo Fix multiple_crate_versions error 2020-07-01 07:35:18 +02:00
ui-toml Add configurable threshold for type_repetition_in_bounds lint 2020-07-03 17:29:54 +02:00
compile-test.rs Update compile-test to follow new lint 2020-07-03 16:51:44 -07:00
dogfood.rs
fmt.rs
integration.rs
missing-test-files.rs
versioncheck.rs