rustc-dev-guide/examples
Timo 1b826bea1d update rustc_driver examples (#1803) 2023-10-05 19:19:12 +09:00
..
README howto run the examples (#1593) 2023-02-15 11:40:25 -03:00
rustc-driver-example.rs update rustc_driver examples (#1803) 2023-10-05 19:19:12 +09:00
rustc-driver-getting-diagnostics.rs update rustc_driver examples (#1803) 2023-10-05 19:19:12 +09:00
rustc-driver-interacting-with-the-ast.rs update rustc_driver examples (#1803) 2023-10-05 19:19:12 +09:00

README

For each example to compile, you will need to first run the following:

    rustup component add rustc-dev llvm-tools

To create an executable:

    rustc rustc-driver-example.rs

To run an executable:

    rustup run nightly ./rustc-driver-example