Function clippy_utils::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
pub fn path_res<'tcx>(
cx: &LateContext<'_>,
maybe_path: &impl MaybePath<'tcx>,
) -> Res
If maybe_path
is a path node, resolves it, otherwise returns Res::Err