Function clippy_utils::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.