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

fix: mark PIDFDInfo and PIDRUsage unsafe #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ethanpailes
Copy link

This patch marks the PIDRUsage and PIDFDInfo traits as unsafe, since incorrect implementations of
these traits could lead to unsound behavior.

Unfortunately, since these are public traits,
this will mean an incompatible version bump
for the next release, though hopefully no one
is really rolling their own implementation for
these guys.

https://doc.rust-lang.org/reference/unsafe-keyword.html#unsafe-traits-unsafe-trait

@andrewdavidmackenzie
Copy link
Owner

Clippy fails due to missing docs for UNSAFE

@andrewdavidmackenzie
Copy link
Owner

Fixes #146
I understand?

@ethanpailes ethanpailes force-pushed the mark-traits-unsafe branch 3 times, most recently from 5f5f3e0 to e2b7527 Compare July 29, 2024 12:29
@ethanpailes
Copy link
Author

The test failures should be fixed now. Sorry it took a minute, I had notifications routing to the wrong email.

@ethanpailes ethanpailes force-pushed the mark-traits-unsafe branch 3 times, most recently from 2b17758 to 3e42c03 Compare July 29, 2024 13:19
This patch marks the PIDRUsage and PIDFDInfo traits
as unsafe, since incorrect implementations of
these traits could lead to unsound behavior.

Unfortunately, since these are public traits,
this will mean an incompatible version bump
for the next release, though hopefully no one
is really rolling their own implementation for
these guys.

https://doc.rust-lang.org/reference/unsafe-keyword.html#unsafe-traits-unsafe-trait
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.

2 participants