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

Fix a soundness hole #8

Closed
wants to merge 1 commit into from
Closed

Conversation

dead-claudia
Copy link

Just like Mutex<T> is only Sync if T is Send, SyncWrapper<T> should contain the same constraints.

See rust-lang/rust#106792 for an example of how this can play out in practice.

Just like `Mutex<T>` is only `Sync` if `T` is `Send`, `SyncWrapper<T>` should contain the same constraints.
@rkuhn
Copy link
Member

rkuhn commented Jan 13, 2023

Please see #2 and rust-lang/rust#106792 (comment) for arguments why this PR is incorrect. Can you present a counterexample? (i.e. code that typechecks but does indeed contain UB)

@dead-claudia
Copy link
Author

Closed since I can't seem to find a std counterexample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants