Skip to content

Commit

Permalink
Fix type checking brief explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jun 14, 2021
1 parent 227acff commit 16ae618
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ we'll talk about that later.
of pairing up an impl with each reference to a trait), and [type
checking] (the process of converting the types found in the HIR
(`hir::Ty`), which represent the syntactic things that the user wrote,
into the internal representation used by the compiler (`Ty<'tcx>`)).
into the internal representation used by the compiler (`Ty<'tcx>`),
and using that information to verify the type safety, correctness and
coherence of the types used in the program).
- The HIR is then [lowered to Mid-Level Intermediate Representation (MIR)][mir].
- Along the way, we construct the THIR, which is an even more desugared HIR.
THIR is used for pattern and exhaustiveness checking. It is also more
Expand Down

0 comments on commit 16ae618

Please sign in to comment.