[−][src]Static rustc_lint::builtin::UNSAFE_CODE
pub(in builtin) static UNSAFE_CODE: &Lint
The unsafe_code lint catches usage of unsafe code.
Example
ⓘThis example deliberately fails to compile
#![deny(unsafe_code)] fn main() { unsafe { } }
{{produces}}
Explanation
This lint is intended to restrict the usage of unsafe, which can be
difficult to use correctly.