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
#![warn(unsafe_op_in_unsafe_fn)] will no longer make unsafe fn imply a unsafe {} surrounding the body. We should consider switching it on to make all unsafe operations explicit, even inside unsafe fn. This will ensure that all operations in unsafe fn still have their invariants audited and upheld.
This feature is stablised in Rust 1.52 so we may want a newer version of Rust nightly.
The text was updated successfully, but these errors were encountered:
This includes non-`rust/` code.
As soon as the warnings are cleaned up, we can move it to a hard error.
Fixes: Rust-for-Linux#285
Signed-off-by: Miguel Ojeda <[email protected]>
#![warn(unsafe_op_in_unsafe_fn)]
will no longer makeunsafe fn
imply aunsafe {}
surrounding the body. We should consider switching it on to make all unsafe operations explicit, even insideunsafe fn
. This will ensure that all operations inunsafe fn
still have their invariants audited and upheld.This feature is stablised in Rust 1.52 so we may want a newer version of Rust nightly.
The text was updated successfully, but these errors were encountered: