Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c83eb53

Browse files
lcnrcompiler-errors
authored andcommitted
extend the sixth requirement
1 parent 6292408 commit c83eb53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/rustc-dev-guide/src/solve/trait-solving.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ Trait solving during codegen should have the same result as during typeck. As we
9696
all free regions during codegen we must not rely on them during typeck. A noteworthy example
9797
is special behavior for `'static`.
9898

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+
99103
### 7. Removing ambiguity makes strictly more things compile
100104

101105
We *should* not rely on ambiguity for things to compile.

0 commit comments

Comments
 (0)