pub(crate) fn href_with_path_check( did: DefId, cx: &Context<'_>, text: &str, ) -> Result<HrefInfo, HrefError>