Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't suggest a.mul_add(b, c) if parameters are not float #11836

Merged
merged 1 commit into from Nov 27, 2023

Conversation

lukaslueg
Copy link
Contributor

@lukaslueg lukaslueg commented Nov 18, 2023

clippy::suboptimal_flops used to not check if the second parameter to f32/f64.mul_add() was float. Since the method is only defined to take Self as parameters, the suggestion was wrong.

Fixes #11831

changelog: [suboptimal_float]: Don't suggest a.mul_add(b, c) if parameters are not f32/f64

clippy::suboptimal_flops used to not check if the second parameter to f32/f64.mul_add() was float. Since the method is
only defined to take `Self` as paremters, the suggestion was wrong.

Fixes rust-lang#11831
@rustbot
Copy link
Collaborator

rustbot commented Nov 18, 2023

r? @Alexendoo

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 18, 2023
@Alexendoo
Copy link
Member

Thanks! @bors r+

@bors
Copy link
Collaborator

bors commented Nov 27, 2023

📌 Commit a2e396b has been approved by Alexendoo

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Nov 27, 2023

⌛ Testing commit a2e396b with merge e6f3390...

@bors
Copy link
Collaborator

bors commented Nov 27, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Alexendoo
Pushing e6f3390 to master...

@bors bors merged commit e6f3390 into rust-lang:master Nov 27, 2023
5 checks passed
@lukaslueg lukaslueg deleted the issue11831 branch November 27, 2023 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clippy::suboptimal_flops suggestion can introduce errors with mul_add()
4 participants