Actually use probes when needed and stop relying on existing outer probes

This commit is contained in:
Michael Goulet
2024-04-26 13:31:18 -04:00
parent 5776aec662
commit 7cf1c547c2
11 changed files with 349 additions and 334 deletions

View File

@@ -1078,9 +1078,8 @@ impl<'a, 'tcx> ProofTreeVisitor<'tcx> for AmbiguityCausesVisitor<'a, 'tcx> {
// Add ambiguity causes for unknowable goals.
let mut ambiguity_cause = None;
for cand in goal.candidates() {
// FIXME: boiiii, using string comparisions here sure is scuffed.
if let inspect::ProbeKind::MiscCandidate {
name: "coherence unknowable",
if let inspect::ProbeKind::TraitCandidate {
source: CandidateSource::CoherenceUnknowable,
result: Ok(_),
} = cand.kind()
{