about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2022-08-09 14:36:49 -0700
committerJoshua Nelson <github@jyn.dev>2022-08-09 16:44:20 -0500
commit38685a4f0dc841ce49db830d148472dfbfbe88ed (patch)
treedc9a6154c203e23250f6026617f14ed99a6af63d /src/doc/rustc-dev-guide
parent84c740f436cddfc20debffaa61287f11cd922e1f (diff)
downloadrust-38685a4f0dc841ce49db830d148472dfbfbe88ed.tar.gz
rust-38685a4f0dc841ce49db830d148472dfbfbe88ed.zip
Add colors to diagram
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/building/bootstrapping.md17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/bootstrapping.md b/src/doc/rustc-dev-guide/src/building/bootstrapping.md
index 878a09e7a8f..0564d0d7a3a 100644
--- a/src/doc/rustc-dev-guide/src/building/bootstrapping.md
+++ b/src/doc/rustc-dev-guide/src/building/bootstrapping.md
@@ -20,22 +20,27 @@ rustc, then uses it to compile the new compiler.
 
 Compiling `rustc` is done in stages. Here's a diagram, adapted from Joshua Nelson's
 [talk on bootstrapping][rustconf22-talk] at RustConf 2022, with detailed explanations below.
+
 The `A`, `B`, `C`, and `D` show the ordering of the stages of bootstrapping.
+<span style="background-color: yellow">Yellow</span> nodes are built with the stage0 compiler, and
+<span style="background-color: lightgreen">green</span> nodes are built with the stage1 compiler.
 
 [rustconf22-talk]: https://rustconf.com/schedule#bootstrapping-the-once-and-future-compiler
 
 ```mermaid
 graph TD
-    s0c["stage0 compiler (1.63)"] -->|A| s0l("stage0 std (1.64)");
+    s0c["stage0 compiler (1.63)"] -->|A| s0l("stage0 std (1.64)"):::with-s0c;
     s0c & s0l --- stepb[ ]:::empty;
-    stepb -->|B| s0ca["stage0 compiler artifacts (1.64)"];
-    s0ca -->|copy| s1c["stage1 compiler (1.64)"];
-    s1c -->|C| s1l("stage1 std (1.64)");
+    stepb -->|B| s0ca["stage0 compiler artifacts (1.64)"]:::with-s0c;
+    s0ca -->|copy| s1c["stage1 compiler (1.64)"]:::with-s0c;
+    s1c -->|C| s1l("stage1 std (1.64)"):::with-s1c;
     s1c & s1l --- stepd[ ]:::empty;
-    stepd -->|D| s1ca["stage1 compiler artifacts (1.64)"];
-    s1ca -->|copy| s2c["stage2 compiler"];
+    stepd -->|D| s1ca["stage1 compiler artifacts (1.64)"]:::with-s1c;
+    s1ca -->|copy| s2c["stage2 compiler"]:::with-s1c;
 
     classDef empty width:0px,height:0px;
+    classDef with-s0c fill: yellow;
+    classDef with-s1c fill: lightgreen, color: black;
 ```
 
 ### Stage 0