Skip to content

Fix FreeBSD CPU_ macros #2842

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

Merged
merged 1 commit into from
Jul 12, 2022
Merged

Conversation

rtzoeller
Copy link
Contributor

The current definitions conflate bits and bytes, leading to panics.

Found while trying to add support for nix::sched::sched_setaffinity to FreeBSD.

The current definitions conflate bits and bytes, leading to panics.
@rust-highfive
Copy link

r? @Amanieu

(rust-highfive has picked a reviewer for you, use r? to override)

@rtzoeller
Copy link
Contributor Author

rtzoeller commented Jul 11, 2022

FYI @asomers, not sure if there's any other broken stuff added for FreeBSD recently.

@asomers
Copy link
Contributor

asomers commented Jul 12, 2022

Good catch. Maybe there should be unit tests for those functions?

@rtzoeller
Copy link
Contributor Author

@asomers I'll improve the test coverage in nix when I add FreeBSD support for the wrapper.

@Amanieu
Copy link
Member

Amanieu commented Jul 12, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Jul 12, 2022

📌 Commit 57dff10 has been approved by Amanieu

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jul 12, 2022

⌛ Testing commit 57dff10 with merge fb8d512...

@bors
Copy link
Contributor

bors commented Jul 12, 2022

☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14
Approved by: Amanieu
Pushing fb8d512 to master...

@bors bors merged commit fb8d512 into rust-lang:master Jul 12, 2022
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.

5 participants