@@ -17,7 +17,7 @@ complex make project or Cargo build, etc. That could be a lot of work;
1717rustc, like most compilers, takes a large number of command line arguments which
1818can affect compilation in complex and interacting ways. Emulating all of this
1919behaviour 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.
2121
2222The kind of things I have in mind are tools like rustdoc or a future rustfmt.
2323These 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
2727should be easier than forking the compiler (and keeping it up to date as the
2828compiler evolves).
2929
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
3131drop-in tool easier to produce (many others have also helped improve these
3232interfaces over the same time frame). It is now pretty simple to make a tool
3333which 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
7373selection, linting, and so forth. Most error detection is done in this phase
7474(although parse errors are found during parsing). The 'output' of this phase is
7575a 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 )
7777and a bunch of other crates with the 'librustc_ ' prefix.
7878
7979Next is translation, this translates the AST (and all those side tables) into
0 commit comments