clippy_utils::visitors

Function contains_unsafe_block

source
pub fn contains_unsafe_block<'tcx>(
    cx: &LateContext<'tcx>,
    e: &'tcx Expr<'tcx>,
) -> bool
Expand description

Checks if the given expression contains an unsafe block