diff options
| author | bors <bors@rust-lang.org> | 2020-08-26 18:15:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-26 18:15:42 +0000 |
| commit | 64c4bb0d2bac5f7810d7d0fa6ad846417b3ca60a (patch) | |
| tree | ef8d2c80f564b3f3123ee6e38da6ecd70f79d6f5 /src/test/incremental/thinlto | |
| parent | 894581b872ef8f87074815454f25a262d4e699f4 (diff) | |
| parent | 2d853148d72d49956052cf1cdb5f3be18c85a9fc (diff) | |
| download | rust-64c4bb0d2bac5f7810d7d0fa6ad846417b3ca60a.tar.gz rust-64c4bb0d2bac5f7810d7d0fa6ad846417b3ca60a.zip | |
Auto merge of #5966 - 1c3t3a:1c3t3a-dev-5819-fix, r=Manishearth
Corrects the float_equality_without_abs lint Fixes an issue in the `float_equality_without_abs` lint. The lint suggestion was configured in a way that it lints the whole error and not just the subtraction part. In the current configuration the lint would suggest to change the expression in a wrong way, e.g. ```rust let _ = (a - b) < f32::EPSILON; // before let _ = (a - b).abs(); // after ``` This was dicovered by @flip1995. (See discussion of PR #5952). Also the suggestion is now formatted via `utils::sugg`. changelog: none
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
