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

Fix FP: no lint when cast is coming from signum method call for cast_possible_truncation lint #7850

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

ThibsG
Copy link
Contributor

@ThibsG ThibsG commented Oct 20, 2021

Fixes a FP when cast is coming from signum method call

fixes: #5395

changelog: [cast_possible_truncation] Fix FP when cast is coming from signum method call

@rust-highfive
Copy link

r? @camsteffen

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 20, 2021
@camsteffen
Copy link
Contributor

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Oct 21, 2021

📌 Commit 566244a has been approved by camsteffen

@bors
Copy link
Contributor

bors commented Oct 21, 2021

⌛ Testing commit 566244a with merge c97a06d...

@bors
Copy link
Contributor

bors commented Oct 21, 2021

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

@bors bors merged commit c97a06d into rust-lang:master Oct 21, 2021
@ThibsG ThibsG deleted the PossibleCastTruncation5395 branch October 21, 2021 19:02
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.

<int>.signum() can be safely cast to any signed integer
4 participants