Skip to content

Commit 3129942

Browse files
committed
extend comment
1 parent b468bfb commit 3129942

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+5
-0
lines changed

Diff for: compiler/rustc_trait_selection/src/traits/wf.rs

+5
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@ impl<'a, 'tcx> WfPredicates<'a, 'tcx> {
304304

305305
fn normalize(self, infcx: &InferCtxt<'tcx>) -> Vec<traits::PredicateObligation<'tcx>> {
306306
// Do not normalize `wf` obligations with the new solver.
307+
//
308+
// The current deep normalization routine with the new solver does not
309+
// handle ambiguity and the new solver correctly deals with unnnormalized goals.
310+
// If the user relies on normalized types, e.g. for `fn implied_outlives_bounds`,
311+
// it is their responsibility to normalize while avoiding ambiguity.
307312
if infcx.next_trait_solver() {
308313
return self.out;
309314
}

0 commit comments

Comments
 (0)