kraktus
6f4546a4be
[unnecessary_cast
] Do not lint negative hexadecimal literals when cast as float
...
Floats cannot be expressed as hexadecimal literals
2022-10-08 16:15:18 +02:00
TennyZhuang
081f73954b
let unnecessary_cast work for trivial non_literal expressions
...
Signed-off-by: TennyZhuang <zty0826@gmail.com>
2022-10-02 23:02:11 +08:00
kraktus
90b446fd38
[unnecessary_cast
] add parenthesis when negative number uses a method
2022-10-02 14:35:38 +02:00
Andre Bogus
90fe3bea52
remove parenthesis from unnecessary_cast suggestion
2022-08-27 12:04:19 +02:00
Samuel E. Moelius III
c91a7f0b83
Address review comments
2022-05-27 15:18:46 -04:00
Samuel E. Moelius III
911eb1f4cd
Check .fixed
paths' existence in run_ui
2022-05-27 15:18:46 -04:00
Jaic1
ec851b870b
First submit
2022-03-28 12:09:01 +08:00
Dharma Saputra Wijaya
0d7273fef6
fix bad suggestion on numeric_literal
2022-01-26 15:02:13 +08:00
Cameron Steffen
a39a93faeb
Disable unnecessary_cast for cfg-dependant types
2020-11-22 19:35:04 -06:00
Philipp Hansch
2d84d0361d
Split up cast.rs tests, run-rustfix for unnecessary_cast
...
This splits up the cast.rs tests and enables rustfix tests for the part
of the `unnecessary_cast` lint that emits `MachineApplicable`
suggestions.
cc #3630
2019-08-04 08:24:23 +02:00