We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a5eb92 commit 635bab1Copy full SHA for 635bab1
src/solve/trait-solving.md
@@ -96,6 +96,10 @@ Trait solving during codegen should have the same result as during typeck. As we
96
all free regions during codegen we must not rely on them during typeck. A noteworthy example
97
is special behavior for `'static`.
98
99
+We also have to be careful with relying on equality of regions in the trait solver.
100
+This is fine for codegen, as we treat all erased regions are equal. We can however
101
+loose equality information from HIR to MIR typeck.
102
+
103
### 7. Removing ambiguity makes strictly more things compile
104
105
We *should* not rely on ambiguity for things to compile.
0 commit comments