File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,16 @@ types.
2626This is unfortunately broken for ` <fndef as FnOnce<..>>::Output ` due to implied bounds,
2727resulting in [ #114936 ] .
2828
29- ### applying inference results from a goal does not change its result ❌
29+ ### Structural equality modulo regions implies semantic equality ✅
30+
31+ If you have a some type and equate it to itself after replacing any regions with unique
32+ inference variables in both the lhs and rhs, the now potentially structurally different
33+ types should still be equal to each other.
34+
35+ Needed to prevent goals from succeeding in HIR typeck and then failing in MIR borrowck.
36+ If this does invariant is broken MIR typeck ends up failing with an ICE.
37+
38+ ### Applying inference results from a goal does not change its result ❌
3039
3140TODO: this invariant is formulated in a weird way and needs to be elaborated.
3241Pretty much: I would like this check to only fail if there's a solver bug:
You can’t perform that action at this time.
0 commit comments