pub trait TypeErrCtxtAmbiguityExt<'a, 'tcx> {
    // Required methods
    fn maybe_report_ambiguity(
        &self,
        obligation: &PredicateObligation<'tcx>,
    ) -> ErrorGuaranteed;
    fn annotate_source_of_ambiguity(
        &self,
        err: &mut Diag<'_>,
        ambiguities: &[CandidateSource],
        predicate: Predicate<'tcx>,
    );
}

Required Methods§

source

fn maybe_report_ambiguity( &self, obligation: &PredicateObligation<'tcx>, ) -> ErrorGuaranteed

source

fn annotate_source_of_ambiguity( &self, err: &mut Diag<'_>, ambiguities: &[CandidateSource], predicate: Predicate<'tcx>, )

Implementations on Foreign Types§

source§

impl<'a, 'tcx> TypeErrCtxtAmbiguityExt<'a, 'tcx> for TypeErrCtxt<'a, 'tcx>

source§

fn maybe_report_ambiguity( &self, obligation: &PredicateObligation<'tcx>, ) -> ErrorGuaranteed

source§

fn annotate_source_of_ambiguity( &self, err: &mut Diag<'_>, ambiguities: &[CandidateSource], predicate: Predicate<'tcx>, )

Implementors§