1
Fork 0

extend comment

This commit is contained in:
lcnr 2023-07-04 10:34:27 +02:00
parent b468bfb361
commit 312994243a

View file

@ -304,6 +304,11 @@ impl<'a, 'tcx> WfPredicates<'a, 'tcx> {
fn normalize(self, infcx: &InferCtxt<'tcx>) -> Vec<traits::PredicateObligation<'tcx>> { fn normalize(self, infcx: &InferCtxt<'tcx>) -> Vec<traits::PredicateObligation<'tcx>> {
// Do not normalize `wf` obligations with the new solver. // Do not normalize `wf` obligations with the new solver.
//
// The current deep normalization routine with the new solver does not
// handle ambiguity and the new solver correctly deals with unnnormalized goals.
// If the user relies on normalized types, e.g. for `fn implied_outlives_bounds`,
// it is their responsibility to normalize while avoiding ambiguity.
if infcx.next_trait_solver() { if infcx.next_trait_solver() {
return self.out; return self.out;
} }