pub(crate) fn should_ignore_res(res: Res) -> bool