pub fn path_res<'tcx>(
cx: &LateContext<'_>,
maybe_path: &impl MaybePath<'tcx>,
) -> ResExpand description
If maybe_path is a path node, resolves it, otherwise returns Res::Err
pub fn path_res<'tcx>(
cx: &LateContext<'_>,
maybe_path: &impl MaybePath<'tcx>,
) -> ResIf maybe_path is a path node, resolves it, otherwise returns Res::Err