pub fn is_res_used(cx: &LateContext<'_>, res: Res, body: BodyId) -> boolExpand description
Checks if the given resolved path is used in the given body.
pub fn is_res_used(cx: &LateContext<'_>, res: Res, body: BodyId) -> boolChecks if the given resolved path is used in the given body.