Skip to content

Fix a soundness hole#8

Closed
dead-claudia wants to merge 1 commit intoActyx:masterfrom
dead-claudia:patch-1
Closed

Fix a soundness hole#8
dead-claudia wants to merge 1 commit intoActyx:masterfrom
dead-claudia:patch-1

Conversation

@dead-claudia
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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