-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Added lint for TryFrom for checked integer conversion. #4088
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about taking so long to review this!
I don't think this closes the issue fully, as it only gets rid of the handcrafted conversion check, but the actual conversion via as
still stays around. This can be addressed in a follow up PR though.
No worries! |
yea, we'll keep the issue open for the full fix |
you have some CI failures. Most likely you need to rebase and use the latest master branch of rustc. |
@bors r+ Thanks! |
📌 Commit e85211c has been approved by |
Added lint for TryFrom for checked integer conversion. works towards #3947 Added lint for try_from for checked integer conversion. Should recognize simple & straight-forward checked integer conversions.
💔 Test failed - status-appveyor |
☔ The latest upstream changes (presumably #4110) made this pull request unmergeable. Please resolve the merge conflicts. |
@oli-obk Could we try again? (I assume the last PR fixed the testsuite issue?) |
@bors r+ sorry about the symbol churn. |
📌 Commit 565feb0 has been approved by |
Added lint for TryFrom for checked integer conversion. works towards #3947 Added lint for try_from for checked integer conversion. Should recognize simple & straight-forward checked integer conversions.
☀️ Test successful - checks-travis, status-appveyor |
Sure! I'm glad it worked out. |
works towards #3947
Added lint for try_from for checked integer conversion.
Should recognize simple & straight-forward checked integer conversions.