-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Allow Arc::from_raw to be used with a pointer from Arc::as_ptr #106185
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
cadba17
to
7850674
Compare
What happens when an I have always thought strong_count was always >= 1 EDIT: ok that won't free it because the strong count will wrap but then it might lead to leaks which is probably not unsound but a bit tricky to debug. What's the real gain by allowing this? |
Hello @albertlarsan68! Has there been any updates since the review posted above? |
☔ The latest upstream changes (presumably #89132) made this pull request unmergeable. Please resolve the merge conflicts. |
Closing this as inactive. Feel free to reöpen this pr or create a new pr if you get the time to work on this. Thanks |
Closes #106124
r? rust-lang/libs-api
@rustbot labels +A-docs +T-libs-api -T-libs