clippy_utils

Function path_res

source
pub fn path_res<'tcx>(
    cx: &LateContext<'_>,
    maybe_path: &impl MaybePath<'tcx>,
) -> Res
Expand description

If maybe_path is a path node, resolves it, otherwise returns Res::Err