Remove ptr from AtomicPtr::fetch_{add,sub} method names#102970
Remove ptr from AtomicPtr::fetch_{add,sub} method names#102970WaffleLapkin wants to merge 1 commit intorust-lang:masterfrom
ptr from AtomicPtr::fetch_{add,sub} method names#102970Conversation
|
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*andpointermethods, see #99108 (comment)r? @thomcc