File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 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
1414and a closure that takes a [ ` Compiler ` ] . ` run_compiler ` creates a ` Compiler ` from the
1515configuration and passes it to the closure. Inside the closure, you can use the ` Compiler `
1616to 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 ] .
1718
1819You can see what queries are currently available through the rustdocs for [ ` Compiler ` ] .
1920You can see an example of how to use them by looking at the ` rustc_driver ` implementation,
@@ -36,6 +37,7 @@ replaces this functionality.
3637[ cb ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/trait.Callbacks.html
3738[ rd_rc ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/fn.run_compiler.html
3839[ 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
3941[ `rustc_interface` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/index.html
4042[ `rustc_driver` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/
4143[ `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