Skip to content

Commit 63c033c

Browse files
committed
edit MIR lowering
1 parent bc5c1db commit 63c033c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/overview.md

+9
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,15 @@ into the internal representation used by the compiler ([`Ty<'tcx>`]).
185185
That information is usedto verify the type safety, correctness and
186186
coherence of the types used in the program.
187187

188+
### MIR lowering
189+
190+
The HIR is then [lowered to Mid-level Intermediate Representation (MIR)][mir],
191+
which is used for [borrow checking].
192+
193+
Along the way, we also construct the THIR, which is an even more desugared HIR.
194+
THIR is used for pattern and exhaustiveness checking. It is also more
195+
convenient to convert into MIR than HIR is.
196+
188197

189198
[String interning]: https://en.wikipedia.org/wiki/String_interning
190199
[`rustc_lexer`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lexer/index.html

0 commit comments

Comments
 (0)