[][src]Static rustc_ap_rustc_session::lint::builtin::UNUSED_UNSAFE

pub static  UNUSED_UNSAFE: &Lint

The unused_unsafe lint detects unnecessary use of an unsafe block.

Example

unsafe {}

{{produces}}

Explanation

If nothing within the block requires unsafe, then remove the unsafe marker because it is not required and may cause confusion.