You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In wait.rs are #[allow(unused_unsafe)] annotated blocks and unsafe without explanation.
Looking at the libc crate, they use safe_f macro rules. I think this should mean that usage of this function is safe (in contrast to f macro rule in libc).
Reason for my request is a global lint rule forbidding unused unsafe.
The functions exited, exit_status, signaled, term_signal, dumped_core, stopped, stop_signal are also untested.
What am I missing on this?
The text was updated successfully, but these errors were encountered:
They're there because libc originally defined those functions as unsafe, then later change them into safe functions. The #[allow] directive was necessary in order to allow Nix to build with both old and new versions of libc. If Nix's minimum version of libc now exceeds the version that made those functions safe (I haven't checked), then please submit a PR removing the directive.
In wait.rs are
#[allow(unused_unsafe)]
annotated blocks and unsafe without explanation.Looking at the
libc
crate, they usesafe_f
macro rules. I think this should mean that usage of this function is safe (in contrast to f macro rule in libc).Reason for my request is a global lint rule forbidding unused unsafe.
The functions
exited, exit_status, signaled, term_signal, dumped_core, stopped, stop_signal
are also untested.What am I missing on this?
The text was updated successfully, but these errors were encountered: