about 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-19 20:46:02 +0900
committerGitHub <noreply@github.com>2020-08-19 11:46:02 +0000
commit18a74597ac16c65ee975b30a5cdee9ea0acc1672 (patch)
treece559de6738360ea9e12e1a503dc2c82dec251a0 /src/doc/rustc-dev-guide
parentc0ad2f923108299877cef71029b9b90c676c13fa (diff)
downloadrust-18a74597ac16c65ee975b30a5cdee9ea0acc1672.tar.gz
rust-18a74597ac16c65ee975b30a5cdee9ea0acc1672.zip
Remove duplicate MIR chapter entry (#830)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/SUMMARY.md5
-rw-r--r--src/doc/rustc-dev-guide/src/part-5-intro.md6
2 files changed, 6 insertions, 5 deletions
diff --git a/src/doc/rustc-dev-guide/src/SUMMARY.md b/src/doc/rustc-dev-guide/src/SUMMARY.md
index 70c34f2a6de..edf97c6dba0 100644
--- a/src/doc/rustc-dev-guide/src/SUMMARY.md
+++ b/src/doc/rustc-dev-guide/src/SUMMARY.md
@@ -129,9 +129,8 @@
 # MIR to Binaries
 
 - [Prologue](./part-5-intro.md)
-- [The MIR (Mid-level IR)](./mir/index.md)
-    - [MIR optimizations](./mir/optimizations.md)
-    - [Debugging](./mir/debugging.md)
+- [MIR optimizations](./mir/optimizations.md)
+- [Debugging](./mir/debugging.md)
 - [Constant evaluation](./const-eval.md)
     - [miri const evaluator](./miri.md)
 - [Monomorphization](./backend/monomorph.md)
diff --git a/src/doc/rustc-dev-guide/src/part-5-intro.md b/src/doc/rustc-dev-guide/src/part-5-intro.md
index 184d0ee3ae9..82663b5625e 100644
--- a/src/doc/rustc-dev-guide/src/part-5-intro.md
+++ b/src/doc/rustc-dev-guide/src/part-5-intro.md
@@ -5,14 +5,16 @@ generated any executable machine code at all! With this chapter, all of that
 changes.
 
 So far, we've shown how the compiler can take raw source code in text format
-and transform it into MIR. We have also shown how the compiler does various
+and transform it into [MIR]. We have also shown how the compiler does various
 analyses on the code to detect things like type or lifetime errors. Now, we
 will finally take the MIR and produce some executable machine code.
 
+[MIR]: ./mir/index.html
+
 > NOTE: This part of a compiler is often called the _backend_ the term is a bit
 > overloaded because in the compiler source, it usually refers to the "codegen
 > backend" (i.e. LLVM or Cranelift). Usually, when you see the word "backend"
-> in this part, we are refering to the "codegen backend".
+> in this part, we are referring to the "codegen backend".
 
 So what do we need to do?