Auto merge of #142088 - compiler-errors:perf-universal-stall, r=lcnr

Filter out universals and lifetimes from `stalled_vars`

lol

r? lcnr
This commit is contained in:
bors
2025-06-08 11:25:24 +00:00
2 changed files with 16 additions and 3 deletions

View File

@@ -120,13 +120,15 @@ pub(super) fn fulfillment_error_for_stalled<'tcx>(
false,
),
Ok(GoalEvaluation { certainty: Certainty::Yes, .. }) => {
bug!(
span_bug!(
root_obligation.cause.span,
"did not expect successful goal when collecting ambiguity errors for `{:?}`",
infcx.resolve_vars_if_possible(root_obligation.predicate),
)
}
Err(_) => {
bug!(
span_bug!(
root_obligation.cause.span,
"did not expect selection error when collecting ambiguity errors for `{:?}`",
infcx.resolve_vars_if_possible(root_obligation.predicate),
)