Skip to content

Commit 9a81d9b

Browse files
committed
Fix type checking brief explanation
1 parent 227acff commit 9a81d9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/overview.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ we'll talk about that later.
7373
of pairing up an impl with each reference to a trait), and [type
7474
checking] (the process of converting the types found in the HIR
7575
(`hir::Ty`), which represent the syntactic things that the user wrote,
76-
into the internal representation used by the compiler (`Ty<'tcx>`)).
76+
into the internal representation used by the compiler (`Ty<'tcx>`),
77+
and use that information to verify the type safety, correctness and
78+
coherence of the types used in the program).
7779
- The HIR is then [lowered to Mid-Level Intermediate Representation (MIR)][mir].
7880
- Along the way, we construct the THIR, which is an even more desugared HIR.
7981
THIR is used for pattern and exhaustiveness checking. It is also more

0 commit comments

Comments
 (0)