1
Fork 0

Rollup merge of #124827 - lcnr:generalize-incomplete, r=compiler-errors

generalize hr alias: avoid unconstrainable infer vars

fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/108

see inline comments for more details

r? `@compiler-errors` cc `@BoxyUwU`
This commit is contained in:
Matthias Krüger 2024-05-07 18:12:55 +02:00 committed by GitHub
commit 4a5bf7b06e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 175 additions and 26 deletions

View file

@ -376,7 +376,10 @@ impl<'tcx> ProofTreeBuilder<'tcx> {
(
DebugSolver::GoalEvaluation(goal_evaluation),
DebugSolver::CanonicalGoalEvaluation(canonical_goal_evaluation),
) => goal_evaluation.evaluation = Some(canonical_goal_evaluation),
) => {
let prev = goal_evaluation.evaluation.replace(canonical_goal_evaluation);
assert_eq!(prev, None);
}
_ => unreachable!(),
}
}