Is there a way we can warn against non-unsafe functions taking a raw pointer argument and dereferencing that pointer in an unsafe block? This is a mistake I see a lot and it’s virtually always incorrect.
-
-
https://github.com/rust-lang/rust/issues/53224 … some were uplifted, but it's case by case so folks need to drive it in general the opinion was that clippy lints that are deny by default probably should be uplifted if they're good which is true for https://rust-lang.github.io/rust-clippy/current/#not_unsafe_ptr_arg_deref …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
What are you supposed to do for C FFI callback then? Clippy nags me about my callbacks taking raw pointers.
-
mark the function as unsafe
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.