rename the hir chapter to The HIR

This commit is contained in:
Niko Matsakis 2018-01-26 09:11:52 -05:00
parent 3b4fab42f9
commit 458685bbb8
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
- [The parser](./the-parser.md)
- [Macro expansion](./macro-expansion.md)
- [Name resolution](./name-resolution.md)
- [HIR lowering](./hir-lowering.md)
- [The HIR (High-level IR)](./hir.md)
- [The `ty` module: representing types](./ty.md)
- [Type inference](./type-inference.md)
- [Trait resolution](./trait-resolution.md)

View File

@ -1,4 +1,4 @@
# HIR lowering
# The HIR
The HIR -- "High-level IR" -- is the primary IR used in most of
rustc. It is a desugared version of the "abstract syntax tree" (AST)
@ -116,4 +116,4 @@ associated with an **owner**, which is typically some kind of item
(e.g., a `fn()` or `const`), but could also be a closure expression
(e.g., `|x, y| x + y`). You can use the HIR map to find the body
associated with a given def-id (`maybe_body_owned_by()`) or to find
the owner of a body (`body_owner_def_id()`).
the owner of a body (`body_owner_def_id()`).