Skip to content

core: make some fundamental atomic functions generic#153407

Draft
joboet wants to merge 2 commits intorust-lang:mainfrom
joboet:generic_atomic_fundamentals
Draft

core: make some fundamental atomic functions generic#153407
joboet wants to merge 2 commits intorust-lang:mainfrom
joboet:generic_atomic_fundamentals

Conversation

@joboet
Copy link
Member

@joboet joboet commented Mar 4, 2026

This makes the basic Atomic creation/destructuring operations (new, into_inner, from_ptr, as_ptr, From<T>, Default) generic over T instead of defining them for each primitive. All other operations need a bit more design work, so I've left them out for now.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Mar 4, 2026
@joboet
Copy link
Member Author

joboet commented Mar 4, 2026

@bors try jobs=i686-gnu-1,i686-gnu-2

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Mar 4, 2026
core: make some fundamental atomic functions generic


try-job: i686-gnu-1
try-job: i686-gnu-2
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 4, 2026

💔 Test for a3a652d failed: CI. Failed jobs:

@joboet joboet force-pushed the generic_atomic_fundamentals branch from f804a05 to a6a05f8 Compare March 4, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants