fn ambiguity_error(
    cx: &DocContext<'_>,
    diag_info: &DiagnosticInfo<'_>,
    path_str: &str,
    candidates: &[(Res, Option<DefId>)]
) -> bool
Expand description

Report an ambiguity error, where there were multiple possible resolutions.

If all candidates have the same kind, it’s not possible to disambiguate so in this case, the function won’t emit an error and will return false. Otherwise, it’ll emit the error and return true.