-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update from_raw_with_void_ptr
to support types other than Box
#9700
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
Update from_raw_with_void_ptr
to support types other than Box
#9700
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @xFrednet (or someone else) soon. Please see the contribution instructions for more information. |
This is a follow-up PR to #9690, btw. |
☔ The latest upstream changes (presumably #9541) made this pull request unmergeable. Please resolve the merge conflicts. |
That was quick! Thanks! Please rebase your branch on top of the latest master, instead of producing a merge commit. Let me know, if you need help with that. After that this is good to go. |
This PR updates the `from_raw_with_void_ptr` lint, which covered `Box::from_raw`, to also cover the `from_raw` static method of the `Rc`, `Arc`, `alloc::rc::Weak` and `alloc::sync::Weak` types. It also improves the description and error messages of this lint. --- changelog: [`from_raw_with_void_ptr`]: Now works with the `Rc`, `Arc`, `alloc::rc::Weak` and `alloc::sync::Weak` types.
109c1f5
to
e49cde7
Compare
Done. |
@bors r+ Awesome, thanks! |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This PR updates the
from_raw_with_void_ptr
lint, which coveredBox::from_raw
, to also cover thefrom_raw
static method of theRc
,Arc
,alloc::rc::Weak
andalloc::sync::Weak
types.It also improves the description and error messages of this lint.
changelog: [
from_raw_with_void_ptr
]: Now works with theRc
,Arc
,alloc::rc::Weak
andalloc::sync::Weak
types.