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 SharedValue #322

Merged
merged 1 commit into from
Feb 1, 2025
Merged

Conversation

conradludgate
Copy link
Contributor

This is a breaking change to the raw-api feature.

I looked at the history of SharedValue. It was introduced to fix #10 to circumvent some pointer shenanigans.

I looked through the code and couldn't find anything relevant anymore. All pointers in a RefMut are derived from &mut V and never convert through &V, thus we never have a case where &V -> &mut V.

I have tested with miri too, which would definitely complain if this is violated.

(this is a pre-requisite for some later changes I wish to make, see #314)

Copy link
Owner

@xacrimon xacrimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@xacrimon xacrimon merged commit c8c936c into xacrimon:master Feb 1, 2025
6 checks passed
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.

Undefined Behavior in util::to_mut
2 participants