Skip to content

Commit 1aceb34

Browse files
nikomatsakismark-i-m
authored andcommitted
link directly to the compile-input function
1 parent f5ff6d0 commit 1aceb34

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/appendix-stupid-stats.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,16 @@ in [librustc_back](https://github.com/rust-lang/rust/tree/master/src/librustc_ba
8787
(which also contains some things used primarily during translation).
8888

8989
All these phases are coordinated by the driver. To see the exact sequence, look
90-
at the `compile_input` function in [librustc_driver/driver.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/driver/).
91-
The driver (which is found in [librust_driver](https://github.com/rust-lang/rust/tree/master/src/librustc_driver))
92-
handles all the highest level coordination of compilation - handling command
93-
line arguments, maintaining compilation state (primarily in the `Session`), and
94-
calling the appropriate code to run each phase of compilation. It also handles
90+
at [the `compile_input` function in `librustc_driver`][compile-input].
91+
The driver handles all the highest level coordination of compilation - handling
92+
command-line arguments, maintaining compilation state (primarily in the `Session`),
93+
and calling the appropriate code to run each phase of compilation. It also handles
9594
high level coordination of pretty printing and testing. To create a drop-in
9695
compiler replacement or a compiler replacement, we leave most of compilation
9796
alone and customise the driver using its APIs.
9897

98+
[compile-input]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/driver/fn.compile_input.html
99+
99100

100101
## The driver customisation APIs
101102

0 commit comments

Comments
 (0)