Skip to content

Commit e8a0108

Browse files
oli-obkmark-i-m
authored andcommitted
Address review
1 parent f394cd1 commit e8a0108

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- [Macro expansion](./macro-expansion.md)
2121
- [Name resolution](./name-resolution.md)
2222
- [The HIR (High-level IR)](./hir.md)
23+
- [Lowering AST to HIR](./lowering.md)
2324
- [The `ty` module: representing types](./ty.md)
2425
- [Type inference](./type-inference.md)
2526
- [Trait solving (old-style)](./traits/resolution.md)

src/hir.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
The HIR – "High-Level Intermediate Representation" – is the primary IR used in
44
most of rustc. It is a compiler-friendly representation of the abstract syntax
55
tree (AST) that is generated after parsing, macro expansion, and name
6-
resolution. Many parts of HIR resemble Rust surface syntax quite closely, with
6+
resolution (see [Lowering](./lowering.md) for how the HIR is created).
7+
Many parts of HIR resemble Rust surface syntax quite closely, with
78
the exception that some of Rust's expression forms have been desugared away. For
89
example, `for` loops are converted into a `loop` and do not appear in the HIR.
910
This makes HIR more amenable to analysis than a normal AST.

0 commit comments

Comments
 (0)