Static rustc_lint::builtin::UNSAFE_CODE [−][src]
static UNSAFE_CODE: &LintExpand 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.