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

cpu: Make cpu::Features be !Send. #2101

Merged
merged 2 commits into from
Jun 14, 2024
Merged

cpu: Make cpu::Features be !Send. #2101

merged 2 commits into from
Jun 14, 2024

Conversation

briansmith
Copy link
Owner

We don't intend to put cpu::Features in any type that could be sent across threads. Enforce this in the type system. This way, we can potentially change the representation of cpu::Features to one that really couldn't be Send in the future.

@briansmith briansmith self-assigned this Jun 14, 2024
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.25%. Comparing base (e3593b4) to head (d070e13).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2101   +/-   ##
=======================================
  Coverage   97.24%   97.25%           
=======================================
  Files         143      143           
  Lines       20144    20144           
  Branches      228      228           
=======================================
+ Hits        19589    19591    +2     
  Misses        527      527           
+ Partials       28       26    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

We don't intend to put `cpu::Features` in any type that could be sent
across threads. Enforce this in the type system. This way, we can
potentially change the representation of `cpu::Features` to one that
really couldn't be `Send` in the future.
@briansmith briansmith merged commit 20a7c48 into main Jun 14, 2024
152 checks passed
@briansmith briansmith deleted the b/features-not-send branch June 14, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant