Skip to content

Commit d96b2d4

Browse files
committed
Stub chapter and consolidate under /hir/
1 parent 02334e1 commit d96b2d4

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

src/doc/rustc-dev-guide/src/SUMMARY.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@
121121
- [Feature gate checking](./feature-gate-ck.md)
122122
- [Lang Items](./lang-items.md)
123123
- [The HIR (High-level IR)](./hir.md)
124-
- [Lowering AST to HIR](./ast-lowering.md)
125-
- [Debugging](./hir-debugging.md)
124+
- [Lowering AST to HIR](./hir/lowering.md)
125+
- [Ambig/Unambig Types and Consts](./hir/ambig-unambig-ty-and-consts.md)
126+
- [Debugging](./hir/debugging.md)
126127
- [The THIR (Typed High-level IR)](./thir.md)
127128
- [The MIR (Mid-level IR)](./mir/index.md)
128129
- [MIR construction](./mir/construction.md)

src/doc/rustc-dev-guide/src/diagnostics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ compiler](#linting-early-in-the-compiler).
553553

554554

555555
[AST nodes]: the-parser.md
556-
[AST lowering]: ast-lowering.md
556+
[AST lowering]: ./hir/lowering.md
557557
[HIR nodes]: hir.md
558558
[MIR nodes]: mir/index.md
559559
[macro expansion]: macro-expansion.md

src/doc/rustc-dev-guide/src/hir.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The HIR – "High-Level Intermediate Representation" – is the primary IR used
66
in most of rustc. It is a compiler-friendly representation of the abstract
77
syntax tree (AST) that is generated after parsing, macro expansion, and name
8-
resolution (see [Lowering](./ast-lowering.html) for how the HIR is created).
8+
resolution (see [Lowering](./hir/lowering.md) for how the HIR is created).
99
Many parts of HIR resemble Rust surface syntax quite closely, with
1010
the exception that some of Rust's expression forms have been desugared away.
1111
For example, `for` loops are converted into a `loop` and do not appear in
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ambig/Unambig Types and Consts

src/doc/rustc-dev-guide/src/ast-lowering.md renamed to src/doc/rustc-dev-guide/src/hir/lowering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AST lowering
22

3-
The AST lowering step converts AST to [HIR](hir.html).
3+
The AST lowering step converts AST to [HIR](../hir.md).
44
This means many structures are removed if they are irrelevant
55
for type analysis or similar syntax agnostic analyses. Examples
66
of such structures include but are not limited to

src/doc/rustc-dev-guide/src/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ For more details on bootstrapping, see
410410
- Guide: [The HIR](hir.md)
411411
- Guide: [Identifiers in the HIR](hir.md#identifiers-in-the-hir)
412412
- Guide: [The `HIR` Map](hir.md#the-hir-map)
413-
- Guide: [Lowering `AST` to `HIR`](ast-lowering.md)
413+
- Guide: [Lowering `AST` to `HIR`](./hir/lowering.md)
414414
- How to view `HIR` representation for your code `cargo rustc -- -Z unpretty=hir-tree`
415415
- Rustc `HIR` definition: [`rustc_hir`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/index.html)
416416
- Main entry point: **TODO**

0 commit comments

Comments
 (0)