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

De-deprecate AtomicCell::get_mut #372

Merged
merged 1 commit into from
May 11, 2019
Merged

Conversation

jeehoonkang
Copy link
Contributor

PR #332 deprecated after the discussion of issue #315, but it is a
measure not yet necessary to take. Revert the deprecation and wait
for us to reach a consensus.

@ghost
Copy link

ghost commented May 10, 2019

Since we're not sure whether this is unsound, could we perhaps change the deprecation message to "this method might be unsound and removed in a future release, but we haven't decided yet" and then un-deprecate it if we decide it is sound?

@jeehoonkang
Copy link
Contributor Author

How about leaving the message and pointing to #315 in the comment, but still de-deprecating the function?

@ghost
Copy link

ghost commented May 11, 2019

Sure! That sounds fine as well :)

@jeehoonkang
Copy link
Contributor Author

@stjepang I updated the PR. Thanks for feedback!

PR crossbeam-rs#332 deprecated after the discussion of issue crossbeam-rs#315, but it is a
measure not yet necessary to take. Revert the deprecation and wait
for us to reach a consensus.
@ghost
Copy link

ghost commented May 11, 2019

Thanks!

bors r+

bors bot added a commit that referenced this pull request May 11, 2019
372: De-deprecate AtomicCell::get_mut r=stjepang a=jeehoonkang

PR #332 deprecated after the discussion of issue #315, but it is a
measure not yet necessary to take. Revert the deprecation and wait
for us to reach a consensus.

Co-authored-by: Jeehoon Kang <jeehoon.kang@kaist.ac.kr>
@bors
Copy link
Contributor

bors bot commented May 11, 2019

Build succeeded

@bors bors bot merged commit 81b13a4 into crossbeam-rs:master May 11, 2019
@jeehoonkang jeehoonkang deleted the revert-332 branch June 2, 2019 05:33
@Centril
Copy link

Centril commented Jun 21, 2019

Since we're not sure whether this is unsound, [...]

@stjepang If you are not sure this is sound, then I think the right thing to do is to deprecate and eventually remove it until such time that you are sure. In my view, the onus is on you to show why some abstraction using unsafe is sound. Pointing towards the absence of a counter-example is not a good argument. Meanwhile, I think @RalfJung has made a good case for why the soundness is dubious.

@ghost
Copy link

ghost commented Jul 24, 2019

@Centril I have reverted this commit and published a new version. Thank you for your feedback!

@Centril
Copy link

Centril commented Jul 24, 2019

Thank you!

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.

2 participants