-
Couldn't load subscription status.
- Fork 1.8k
add from_raw_with_void_ptr lint
#9690
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
Conversation
|
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
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.
The impl LGTM now. But this lint could potentially also apply to Rc Arc and Weak, not only box. This can also be done in a future PR though, so I don't want to block this PR on it. However, I would chose the lint name, so that applying this lint to other types is possible in the future.
Possible names:
from_raw_with_void_ptrfrom_raw_from_void_ptr- ...? Better ideas?
raw_box_from_void_ptr lintfrom_raw_with_void_ptr lint
|
@flip1995 is the PR okay now ? Please let me know. |
|
@bors r+ Thanks! |
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This PR
fixes #9679.stderrfile)cargo testpasses locallycargo dev update_lintscargo dev fmtchangelog: [
from_raw_with_void_ptr]: added new lint