clippy_utils

Function fn_def_id_with_node_args

Source
pub fn fn_def_id_with_node_args<'tcx>(
    cx: &LateContext<'tcx>,
    expr: &Expr<'_>,
) -> Option<(DefId, GenericArgsRef<'tcx>)>
Expand description

Returns the DefId of the callee if the given expression is a function or method call, as well as its node args.