summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-08-02 09:37:43 +0900
committerWho? Me?! <mark-i-m@users.noreply.github.com>2020-08-02 08:39:33 -0500
commit352c50122e4d99b716eb0d1210dd0a137ddce1d9 (patch)
tree5ca1b8aae38f0c7f122053077c402eee8f5ec96f /src/doc/rustc-dev-guide
parent1b3d77f1ca3371817a542d56f9ec15b1c59c3819 (diff)
downloadrust-352c50122e4d99b716eb0d1210dd0a137ddce1d9.tar.gz
rust-352c50122e4d99b716eb0d1210dd0a137ddce1d9.zip
Mention `HAIR` to clarify
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/mir/construction.md1
-rw-r--r--src/doc/rustc-dev-guide/src/overview.md8
2 files changed, 5 insertions, 4 deletions
diff --git a/src/doc/rustc-dev-guide/src/mir/construction.md b/src/doc/rustc-dev-guide/src/mir/construction.md
index 585984e2a11..7fe9ee8840e 100644
--- a/src/doc/rustc-dev-guide/src/mir/construction.md
+++ b/src/doc/rustc-dev-guide/src/mir/construction.md
@@ -14,6 +14,7 @@ list of items:
 The lowering is triggered by calling the [`mir_built`] query.
 There is an intermediate representation
 between [HIR] and [MIR] called the [THIR] that is only used during the lowering.
+[THIR] means "Typed HIR" and used to be called "HAIR (High-level Abstract IR)".
 The [THIR]'s most important feature is that the various adjustments (which happen
 without explicit syntax) like coercions, autoderef, autoref and overloaded method
 calls have become explicit casts, deref operations, reference expressions or
diff --git a/src/doc/rustc-dev-guide/src/overview.md b/src/doc/rustc-dev-guide/src/overview.md
index 8813d215e4e..ec96d243fb2 100644
--- a/src/doc/rustc-dev-guide/src/overview.md
+++ b/src/doc/rustc-dev-guide/src/overview.md
@@ -187,10 +187,10 @@ for different purposes:
 - High-level IR (HIR): This is a sort of desugared AST. It's still close
   to what the user wrote syntactically, but it includes some implicit things
   such as some elided lifetimes, etc. This IR is amenable to type checking.
-- Typed HIR (THIR): This is an intermediate between HIR and MIR. It is like the HIR
-  but it is fully typed and a bit more desugared (e.g. method calls and implicit
-  dereferences are made fully explicit). Moreover, it is easier to lower to MIR
-  from THIR than from HIR.
+- Typed HIR (THIR): This is an intermediate between HIR and MIR, and used to be called
+  High-level Abstract IR (HAIR). It is like the HIR but it is fully typed and a bit
+  more desugared (e.g. method calls and implicit dereferences are made fully explicit).
+  Moreover, it is easier to lower to MIR from THIR than from HIR.
 - Middle-level IR (MIR): This IR is basically a Control-Flow Graph (CFG). A CFG
   is a type of diagram that shows the basic blocks of a program and how control
   flow can go between them. Likewise, MIR also has a bunch of basic blocks with