File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ One-step normalization is implemented via `NormalizesTo` goals. Unlike other goa
12
12
in the trait solver, ` NormalizesTo ` always expects the term to be an unconstrained
13
13
inference variable[ ^ opaques ] . Think of it as a function, taking an alias as input
14
14
and returning its underlying value. If the alias is rigid, ` NormalizesTo ` fails and
15
- returns ` NoSolution ` .
15
+ returns ` NoSolution ` . This is the case for ` <T as Trait>::Assoc ` if there's a ` T: Trait `
16
+ where-bound and for opaque types with ` Reveal::UserFacing ` unless they are in the
17
+ defining scope. We must not treat any aliases as rigid in coherence.
16
18
17
19
The underlying value may itself be an unnormalized alias, e.g.
18
20
` NormalizesTo(<<() as Id>::This as Id>::This) ` only returns ` <() as Id>::This ` ,
You can’t perform that action at this time.
0 commit comments