rustc_lint::reference_casting

Function is_cast_from_ref_to_mut_ptr

source
fn is_cast_from_ref_to_mut_ptr<'tcx>(
    cx: &LateContext<'tcx>,
    orig_expr: &'tcx Expr<'tcx>,
    peel_casts: impl FnMut() -> (&'tcx Expr<'tcx>, bool),
) -> Option<bool>