@@ -7,8 +7,8 @@ It acts as the glue for running the various phases of the compiler in the correc
7
7
using the interface defined in the [ ` rustc_interface ` ] crate. Where possible, using [ ` rustc_driver ` ] rather than [ ` rustc_interface ` ] is recommended.
8
8
9
9
The main entry point of [ ` rustc_driver ` ] is [ ` rustc_driver::run_compiler ` ] [ rd_rc ] .
10
- This builder accepts the same command-line args as rustc as well as an implementation of [ ` Callbacks ` ] [ cb ] and a couple of other optional options.
11
- [ ` Callbacks ` ] [ cb ] is a ` trait ` that allows for custom compiler configuration,
10
+ This builder accepts the same command-line args as rustc as well as an implementation of [ ` Callbacks ` ] and a couple of other optional options.
11
+ [ ` Callbacks ` ] is a ` trait ` that allows for custom compiler configuration,
12
12
as well as allowing custom code to run after different phases of the compilation.
13
13
14
14
## ` rustc_interface `
@@ -33,14 +33,8 @@ specifically [`rustc_driver_impl::run_compiler`][rdi_rc]
33
33
[ `Compiler` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/struct.Compiler.html
34
34
[ `rustc_driver` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/
35
35
[ `rustc_interface` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/index.html
36
- [ `Session` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_session/struct.Session.html
37
- [ `SourceMap` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/source_map/struct.SourceMap.html
38
- [ `TyCtxt` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html
39
- [ Appendix A ] : appendix/stupid-stats.html
40
- [ cb ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/trait.Callbacks.html
36
+ [ `Callbacks` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/trait.Callbacks.html
41
37
[ example ] : https://github.com/rust-lang/rustc-dev-guide/blob/master/examples/rustc-interface-example.rs
42
38
[ i_rc ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/fn.run_compiler.html
43
39
[ rd_rc ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/fn.run_compiler.html
44
40
[ rdi_rc ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver_impl/fn.run_compiler.html
45
- [ stupid-stats ] : https://github.com/nrc/stupid-stats
46
- [ `nightly-rustc` ] : https://doc.rust-lang.org/nightly/nightly-rustc/
0 commit comments