Static rustc_lint::builtin::UNSAFE_CODE
source · static UNSAFE_CODE: &Lint
Expand description
The unsafe_code
lint catches usage of unsafe
code.
Example
ⓘ
#![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.