solver comments + remove TyCtxt::evaluate_goal
This commit is contained in:
@@ -28,8 +28,8 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
|
||||
// To only compute normalization once for each projection we only
|
||||
// normalize if the expected term is an unconstrained inference variable.
|
||||
//
|
||||
// E.g. for `<T as Trait>::Assoc = u32` we recursively compute the goal
|
||||
// `exists<U> <T as Trait>::Assoc = U` and then take the resulting type for
|
||||
// E.g. for `<T as Trait>::Assoc == u32` we recursively compute the goal
|
||||
// `exists<U> <T as Trait>::Assoc == U` and then take the resulting type for
|
||||
// `U` and equate it with `u32`. This means that we don't need a separate
|
||||
// projection cache in the solver.
|
||||
if self.term_is_fully_unconstrained(goal) {
|
||||
|
||||
Reference in New Issue
Block a user