Skip to content
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

rust: make SharedState::try_new() return a pinned Arc #289

Merged
merged 1 commit into from
May 23, 2021
Merged

rust: make SharedState::try_new() return a pinned Arc #289

merged 1 commit into from
May 23, 2021

Conversation

obviyus
Copy link

@obviyus obviyus commented May 23, 2021

Fixes #286.

cc: @nbdd0121

@ksquirrel
Copy link
Member

Review of 6ad8ebca98d0:

  • ✔️ Commit 6ad8ebc: Looks fine!

@ksquirrel
Copy link
Member

Review of e2c5fd221051:

  • ✔️ Commit e2c5fd2: Looks fine!

Pinning the Arc immediately guarantees no way to obtain a
Arc<SharedState>, but only a Pin<Arc<SharedState>>

Signed-off-by: Ayaan Zaidi <zaidi.ayaan@gmail.com>
@ksquirrel
Copy link
Member

Review of 84da4b22b8b2:

  • ✔️ Commit 84da4b2: Looks fine!

@alex alex merged commit 1a73789 into Rust-for-Linux:rust May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Current use of pin is unsound
3 participants