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

Use cfg(target_has_atomic) on no-std targets #2811

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Dec 7, 2023

Use cfg(target_has_atomic) on cfg(target_os = "none") targets.

cfg(target_has_atomic) is only actually needed on cfg(target_os = "none") targets since CAS is one of the requirements of the std, and no-std targets other than cfg(target_os = "none") targets provide CAS.

This increases the MSRV of the cfg(target_os = "none") targets to Rust 1.60, but since they are all tier2/tier3 targets in rustc and those use cases usually require at least 1.59 for inline-asm, it would be acceptable for them to have a slightly higher MSRV than the other targets.

See also #2805 (comment) and linked issues.

@taiki-e taiki-e added the 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. label Dec 7, 2023
@taiki-e
Copy link
Member Author

taiki-e commented Dec 7, 2023

FYI @MabezDev

@taiki-e taiki-e merged commit 970e088 into master Dec 8, 2023
23 checks passed
@taiki-e taiki-e deleted the cfg_target_has_atomic branch December 8, 2023 13:37
@taiki-e taiki-e mentioned this pull request Dec 24, 2023
@taiki-e taiki-e added 0.3-backport: completed and removed 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. labels Dec 24, 2023
@taiki-e
Copy link
Member Author

taiki-e commented Dec 24, 2023

Published in 0.3.30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant