clippy_utils::visitors

Function is_expr_unsafe

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

Checks if the given expression performs an unsafe operation outside of an unsafe block.