File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ function is the main entrypoint to the compiler. It takes a configuration for th
14
14
and a closure that takes a [ ` Compiler ` ] . ` run_compiler ` creates a ` Compiler ` from the
15
15
configuration and passes it to the closure. Inside the closure, you can use the ` Compiler `
16
16
to drive queries to compile a crate and get the results. This is what the ` rustc_driver ` does too.
17
+ You can see a minimal example of how to use ` rustc_interface ` [ here] [ example ] .
17
18
18
19
You can see what queries are currently available through the rustdocs for [ ` Compiler ` ] .
19
20
You can see an example of how to use them by looking at the ` rustc_driver ` implementation,
@@ -36,6 +37,7 @@ replaces this functionality.
36
37
[ cb ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/trait.Callbacks.html
37
38
[ rd_rc ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/fn.run_compiler.html
38
39
[ i_rc ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/fn.run_compiler.html
40
+ [ example ] : https://github.com/rust-lang/rustc-dev-guide/blob/master/src/rustc-driver-example.rs
39
41
[ `rustc_interface` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/index.html
40
42
[ `rustc_driver` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/
41
43
[ `Compiler` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/struct.Compiler.html
You can’t perform that action at this time.
0 commit comments