@@ -62,21 +62,20 @@ huge. There is also the `rustc` crate which is the actual binary (i.e. the
62
62
[ ` rustc_driver ` ] crate, which drives the various parts of compilation in other
63
63
crates.
64
64
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
66
66
something like this:
67
67
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.
80
79
81
80
[ `rustc_data_structures` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_data_structures/index.html
82
81
[ `rustc_driver` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/index.html
0 commit comments