@@ -62,21 +62,20 @@ huge. There is also the `rustc` crate which is the actual binary (i.e. the
6262[ ` rustc_driver ` ] crate, which drives the various parts of compilation in other
6363crates.
6464
65- The dependency structure of these crates is complex, but roughly it is
65+ The dependency order of these crates is complex, but roughly it is
6666something like this:
6767
68- - ` rustc ` (the binary) calls [ ` rustc_driver::main ` ] [ main ] .
69- - [ ` rustc_driver ` ] depends on a lot of other crates, but the main one is
70- [ ` rustc_interface ` ] .
71- - [ ` rustc_interface ` ] depends on most of the other compiler crates. It
72- is a fairly generic interface for driving the whole compilation.
73- - Most of the other ` rustc_* ` crates depend on [ ` rustc_middle ` ] ,
74- which defines a lot of central data structures in the compiler.
75- - [ ` rustc_middle ` ] and most of the other crates depend on a
76- handful of crates representing the early parts of the
77- compiler (e.g. the parser), fundamental data structures (e.g.
78- [ ` Span ` ] ), or error reporting: [ ` rustc_data_structures ` ] ,
79- [ ` rustc_span ` ] , [ ` rustc_errors ` ] , etc.
68+ 1 . ` rustc ` (the binary) calls [ ` rustc_driver::main ` ] [ main ] .
69+ 1 . [ ` rustc_driver ` ] depends on a lot of other crates, but the main one is
70+ [ ` rustc_interface ` ] .
71+ 1 . [ ` rustc_interface ` ] depends on most of the other compiler crates. It is a
72+ fairly generic interface for driving the whole compilation.
73+ 1 . Most of the other ` rustc_* ` crates depend on [ ` rustc_middle ` ] , which defines
74+ a lot of central data structures in the compiler.
75+ 1 . [ ` rustc_middle ` ] and most of the other crates depend on a handful of crates
76+ representing the early parts of the compiler (e.g. the parser), fundamental
77+ data structures (e.g. [ ` Span ` ] ), or error reporting:
78+ [ ` rustc_data_structures ` ] , [ ` rustc_span ` ] , [ ` rustc_errors ` ] , etc.
8079
8180[ `rustc_data_structures` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_data_structures/index.html
8281[ `rustc_driver` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/index.html
0 commit comments