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

Remove .forget_exclusive from Ptr::try_into_valid #1257

Merged
merged 1 commit into from
May 14, 2024

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented May 14, 2024

This causes methods like TryFromBytes::try_mut_from to fail compilation during post-monomorphization when used with types containing UnsafeCells. This wasn't caught because our tests hadn't been updated to exercise this condition. This commit also updates the tests so this can't slip through in the future.

@joshlf joshlf requested a review from jswrenn May 14, 2024 20:30
@joshlf joshlf enabled auto-merge May 14, 2024 20:31
This causes methods like `TryFromBytes::try_mut_from` to fail
compilation during post-monomorphization when used with types containing
`UnsafeCell`s. This wasn't caught because our tests hadn't been updated
to exercise this condition. This commit also updates the tests so this
can't slip through in the future.
@joshlf joshlf force-pushed the exclusive-unsafe-cell-tests branch from a03a65d to 1c71488 Compare May 14, 2024 20:35
@joshlf joshlf added this pull request to the merge queue May 14, 2024
Merged via the queue into main with commit 6659998 May 14, 2024
210 checks passed
@joshlf joshlf deleted the exclusive-unsafe-cell-tests branch May 14, 2024 21:08
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.

None yet

2 participants