Allow Arc::from_raw to be used with a pointer from Arc::as_ptr#106185
Allow Arc::from_raw to be used with a pointer from Arc::as_ptr#106185albertlarsan68 wants to merge 1 commit intorust-lang:masterfrom
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