about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-07-05 09:30:05 +0200
committerWho? Me?! <mark-i-m@users.noreply.github.com>2018-07-08 17:41:12 -0500
commitcbce2e4a3cafb9732087269a4d18b82efd21768a (patch)
treed15eac1ae7db85dc809a06152d68647bcba8c582 /src/doc/rustc-dev-guide
parent86d807ba75462ce468b6a68fc485f53b6676357e (diff)
downloadrust-cbce2e4a3cafb9732087269a4d18b82efd21768a.tar.gz
rust-cbce2e4a3cafb9732087269a4d18b82efd21768a.zip
Address review
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/SUMMARY.md1
-rw-r--r--src/doc/rustc-dev-guide/src/hir.md3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/SUMMARY.md b/src/doc/rustc-dev-guide/src/SUMMARY.md
index f60fee488ce..a41f78a1a87 100644
--- a/src/doc/rustc-dev-guide/src/SUMMARY.md
+++ b/src/doc/rustc-dev-guide/src/SUMMARY.md
@@ -20,6 +20,7 @@
 - [Macro expansion](./macro-expansion.md)
 - [Name resolution](./name-resolution.md)
 - [The HIR (High-level IR)](./hir.md)
+    - [Lowering AST to HIR](./lowering.md)
 - [The `ty` module: representing types](./ty.md)
 - [Type inference](./type-inference.md)
 - [Trait solving (old-style)](./traits/resolution.md)
diff --git a/src/doc/rustc-dev-guide/src/hir.md b/src/doc/rustc-dev-guide/src/hir.md
index 2a11531ee6b..0d6a6fbff85 100644
--- a/src/doc/rustc-dev-guide/src/hir.md
+++ b/src/doc/rustc-dev-guide/src/hir.md
@@ -3,7 +3,8 @@
 The HIR – "High-Level Intermediate Representation" – is the primary IR used in
 most of rustc. It is a compiler-friendly representation of the abstract syntax
 tree (AST) that is generated after parsing, macro expansion, and name
-resolution. Many parts of HIR resemble Rust surface syntax quite closely, with
+resolution (see [Lowering](./lowering.md) for how the HIR is created).
+Many parts of HIR resemble Rust surface syntax quite closely, with
 the exception that some of Rust's expression forms have been desugared away. For
 example, `for` loops are converted into a `loop` and do not appear in the HIR.
 This makes HIR more amenable to analysis than a normal AST.