@@ -17,7 +17,7 @@ complex make project or Cargo build, etc. That could be a lot of work;
17
17
rustc, like most compilers, takes a large number of command line arguments which
18
18
can affect compilation in complex and interacting ways. Emulating all of this
19
19
behaviour in your tool is annoying at best, especically if you are making many
20
- of the same calls into librustc that the compiler is.
20
+ of the same calls into librustc_middle that the compiler is.
21
21
22
22
The kind of things I have in mind are tools like rustdoc or a future rustfmt.
23
23
These want to operate as closely as possible to real compilation, but have
@@ -27,7 +27,7 @@ custom code generation phase after macro expansion, then creating a new tool
27
27
should be easier than forking the compiler (and keeping it up to date as the
28
28
compiler evolves).
29
29
30
- I have gradually been trying to improve the API of librustc to make creating a
30
+ I have gradually been trying to improve the API of librustc_middle to make creating a
31
31
drop-in tool easier to produce (many others have also helped improve these
32
32
interfaces over the same time frame). It is now pretty simple to make a tool
33
33
which is as close to rustc as you want it to be. In this tutorial I'll show
@@ -73,7 +73,7 @@ checking, borrow checking, type and lifetime inference, trait selection, method
73
73
selection, linting, and so forth. Most error detection is done in this phase
74
74
(although parse errors are found during parsing). The 'output' of this phase is
75
75
a bunch of side tables containing semantic information about the source program.
76
- The analysis code is in [ librustc ] ( https://github.com/rust-lang/rust/tree/master/src/librustc )
76
+ The analysis code is in [ librustc_middle ] ( https://github.com/rust-lang/rust/tree/master/src/librustc_middle )
77
77
and a bunch of other crates with the 'librustc_ ' prefix.
78
78
79
79
Next is translation, this translates the AST (and all those side tables) into
0 commit comments