@@ -7,8 +7,8 @@ It acts as the glue for running the various phases of the compiler in the correc
77using the interface defined in the [ ` rustc_interface ` ] crate. Where possible, using [ ` rustc_driver ` ] rather than [ ` rustc_interface ` ] is recommended.
88
99The 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,
1212as well as allowing custom code to run after different phases of the compilation.
1313
1414## ` rustc_interface `
@@ -33,14 +33,8 @@ specifically [`rustc_driver_impl::run_compiler`][rdi_rc]
3333[ `Compiler` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/struct.Compiler.html
3434[ `rustc_driver` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/
3535[ `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
4137[ example ] : https://github.com/rust-lang/rustc-dev-guide/blob/master/examples/rustc-interface-example.rs
4238[ i_rc ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/fn.run_compiler.html
4339[ rd_rc ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/fn.run_compiler.html
4440[ 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