-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 ptr
from AtomicPtr::fetch_{add,sub}
method names
#102970
Remove ptr
from AtomicPtr::fetch_{add,sub}
method names
#102970
Conversation
The Miri subtree was changed cc @rust-lang/miri Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot label +T-libs-api -T-libs |
I agree this naming as-is is not ideal, but it was done deliberately to avoid the footgun described here: #96935 (comment). That is, the initial version of the PR used the names you describe and was changed to avoid confusion. |
That said I am in favor of changing the name. I think |
Do you want to open an ACP about this as a place to hold the bikeshed coloring discussion? |
Yeah, I think it's a good idea |
Opened ACP: rust-lang/libs-team#126 |
ACP was declined |
Rename
AtomicPtr::{fetch_ptr_add => fetch_add, fetch_ptr_sub => fetch_sub}
.Reasoning TL;DR: new naming is consistent with other
Atomic*
andpointer
methods, see #99108 (comment)r? @thomcc