|
5 | 5 | > top-level directory has separate directories for the compiler, build-system,
|
6 | 6 | > std libs, etc, rather than one huge `src/` directory.
|
7 | 7 | >
|
8 |
| -> As of this writing, the std libs have been moved to `library/` and there is |
9 |
| -> an ongoing MCP to move the compiler to `compiler/`. |
| 8 | +> As of this writing, the std libs have been moved to `library/` and the crates |
| 9 | +> that make up the `rustc` compiler itself have been moved to `compiler/` |
10 | 10 |
|
11 | 11 | Now that we have [seen what the compiler does](./overview.md), let's take a
|
12 | 12 | look at the structure of the contents of the rust-lang/rust repo.
|
@@ -41,12 +41,9 @@ built in a special way because it can use unstable features.
|
41 | 41 |
|
42 | 42 | > You may find it helpful to read [The Overview Chapter](./overview.md) first,
|
43 | 43 | > which gives an overview of how the compiler works. The crates mentioned in
|
44 |
| -> this section implement the compiler. |
45 |
| -> |
46 |
| -> NOTE: As of this writing, the crates all live in `src/`, but there is an MCP |
47 |
| -> to move them to a new `compiler/` directory. |
| 44 | +> this section implement the compiler, and are underneath `compiler/` |
48 | 45 |
|
49 |
| -The compiler crates all have names starting with `rustc_*`. These are a |
| 46 | +The `compiler/` crates all have names starting with `rustc_*`. These are a |
50 | 47 | collection of around 50 interdependent crates ranging in size from tiny to
|
51 | 48 | huge. There is also the `rustc` crate which is the actual binary (i.e. the
|
52 | 49 | `main` function); it doesn't actually do anything besides calling the
|
|
0 commit comments