File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,15 @@ into the internal representation used by the compiler ([`Ty<'tcx>`]).
185185That information is usedto verify the type safety, correctness and
186186coherence 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
You can’t perform that action at this time.
0 commit comments